Add member
POST
/ admin/ v1/ stores/ {store_id}/ members- staff:manage
- Idempotency-Key supported
Add someone already on the team of another of the owner's stores, with a role here, without an invitation. They're told by email. and every permission of the role.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
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
user_idstringrequiredTypeID with the
usrprefix.role_idstringrequiredTypeID with the
roleprefix.
Returns
201 Added.
Errors
- 403
forbiddenMissingstaff:manage. - 409Already on the team (
already_member). - 422
validation_failedNot on another of the owner's teams (not_on_your_teams), or an unknown or ungrantable role.