Approve collaborator request
POST
/ admin/ v1/ stores/ {store_id}/ collaborators/ requests/ {request_id}/ approve- staff:manage
- Idempotency-Key supported
Grant a request, with what you choose to give. and every permission granted. staff:manage, api_keys:manage, payments:manage and apps:manage can't be.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.request_idstringrequiredThe request's ID, like
creq_01k8qs5s….
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
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 new collaborator.
Errors
- 403
forbiddenMissing permission. - 404
not_foundNo such waiting request. - 409The person has no two-step sign-in (
two_step_required) or is already a member (already_member). - 422
validation_failedA permission that can't be granted.