لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
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.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.user_idstringمطلوبThe member's user ID
الترويسات
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
location_idsarray of strings · أو nullThe locations, or null for every location. Owners can't be limited.
ما يُرجعه
200 Where they may work now.
الأخطاء
- 403
forbiddenMissing permission. - 404
not_foundNot a member of the store. - 409The owner works at every location.
- 422
validation_failedAn unknown location, or none.