Fixing edit/put endpoint for resources.