Skip to content

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_idstringrequired

      The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

    • user_idstringrequired

      The member's user ID

    Headers

    • shop-api-versionYYYY-MM

      The version to answer in. Without it, your app’s pinned version, else the newest.

    Body

    • location_idsarray of strings · or null

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

    Returns

    200 Where they may work now.

    Errors

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