Set staff locations
PUT
/ admin/ v1/ stores/ {store_id}/ locations/ staff/ {user_id}Limit a member to some locations, or let them work at every one (location_ids: null). They change stock, count, receive, fulfil and sell only there. Owners can't be limited.
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_idstringrequiredThe member's user ID
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
location_idsarray of strings · or nullThe locations, or null for every location. Owners can't be limited.
Returns
200 Where they may work now.
Errors
- 403
forbiddenMissing permission. - 404
not_foundNot a member of the store. - 409The owner works at every location.
- 422
validation_failedAn unknown location, or none.