انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

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 · أو null

      The locations, or null for every location. Owners can't be limited.

    ما يُرجعه

    200 Where they may work now.

    الأخطاء

    • 403forbiddenMissing permission.
    • 404not_foundNot a member of the store.
    • 409The owner works at every location.
    • 422validation_failedAn unknown location, or none.