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

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

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

Тело

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

Ответ

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