Перейти к основному содержанию
POST
/
v1
/
crm
/
requests
/
{request_id}
/
period
cURL
curl --request POST \
  --url https://api.example.com/v1/crm/requests/{request_id}/period/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "time_period": 123,
  "inventory_ids": [
    123
  ],
  "sets": [
    {
      "set_id": 123,
      "inventory_ids": [
        123
      ]
    }
  ]
}
'
{
  "inventory_ids": [
    123
  ],
  "sets": [
    {
      "set_id": 123,
      "inventory_ids": [
        123
      ]
    }
  ]
}

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

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

Тело

time_period
integer | null
обязательно
inventory_ids
integer[]
обязательно
sets
object[]
обязательно

Ответ

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