Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • user_idstringrequired

    Collaborator's user ID

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • permissionsarray of stringsrequired
  • access_untiltimestamp · or null

    When it ends by itself; omit for until someone ends it.

Returns

200 The collaborator.

Errors

  • 403forbiddenMissing permission.
  • 404not_foundNo such collaborator.
  • 422validation_failedA permission that can't be granted.