Перейти к основному содержанию
POST
/
v1
/
crm
/
requests
/
{request_id}
/
inventories
/
bulk_update
cURL
curl --request POST \
  --url https://api.example.com/v1/crm/requests/{request_id}/inventories/bulk_update/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "inventories": [
    {
      "tarif": 123,
      "start_at": "2023-11-07T05:31:56Z",
      "end_at": "2023-11-07T05:31:56Z",
      "id": 123,
      "type": 0,
      "set": 123,
      "set_group": "<string>",
      "inventory_group": 123,
      "inventory": 123,
      "tarif_price": "<string>",
      "tarif_duration": "<string>",
      "extra": "<unknown>",
      "warehouse": 123,
      "counterparty": 123,
      "discount": 123,
      "additional_discount": "0.00"
    }
  ],
  "request": 123
}
'
{
  "inventories": [
    {}
  ]
}

Параметры пути

request_id
integer
обязательно

Тело

inventories
object[]
обязательно
request
integer | null

Ответ

201 - application/json
inventories
object[]
обязательно