Stock warehouses

Закрепить людей за складом

Changed on

Ставит участников кабинета в список «Работают на складе» (ERP-1978). Повтор не меняет список. Закрепляют за самим складом — зону и склад «в пути» назвать нельзя (400, код stock.warehouse_staff.place); человек должен быть действующим участником кабинета (400, код stock.warehouse_staff.user). Нужно право stock.settings:write.

post/api/v1/stock/warehouses/{id}/staff

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate
    • or HTTP bearer

Path parameters

id, string uuid required

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Request body

StockWarehouseStaffInput required
user_ids, integer[] required

Участники кабинета (id учётной записи)

Response

Люди склада после правки

StockWarehouseStaffPage required
count, integer required
results, StockWarehouseStaffMember[] required

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    5 more changes in this revision