Update collaborator
PUT
/ admin/ v1/ stores/ {store_id}/ collaborators/ {user_id}- staff:manage
Change what a collaborator holds, and until when. and every permission granted.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.user_idstringrequiredCollaborator's user ID
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
permissionsarray of stringsrequiredaccess_untiltimestamp · or nullWhen it ends by itself; omit for until someone ends it.
Returns
200 The collaborator.
Errors
- 403
forbiddenMissing permission. - 404
not_foundNo such collaborator. - 422
validation_failedA permission that can't be granted.