Перейти к основному содержанию
POST
/
v1
/
crm
/
time_periods
cURL
curl --request POST \
  --url https://api.example.com/v1/crm/time_periods/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "time": "<string>",
  "name": "<string>",
  "weekdays": [
    123
  ],
  "inventory_tarif_count": 123,
  "service_tarif_count": 123
}
'
{
  "id": 123,
  "time": "<string>",
  "deleted": true,
  "name": "<string>",
  "weekdays": [
    123
  ],
  "inventory_tarif_count": 123,
  "service_tarif_count": 123
}

Тело

time
string
обязательно
name
string
weekdays
integer[]
inventory_tarif_count
integer
service_tarif_count
integer

Ответ

201 - application/json
id
integer
обязательно
time
string
обязательно
deleted
boolean
обязательно
name
string
weekdays
integer[]
inventory_tarif_count
integer
service_tarif_count
integer