Перейти к основному содержанию
PATCH
/
v1
/
crm
/
time_periods
/
{id}
cURL
curl --request PATCH \
  --url https://api.example.com/v1/crm/time_periods/{id}/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "time": "<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
}

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

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

Тело

name
string
time
string
weekdays
integer[]
inventory_tarif_count
integer
service_tarif_count
integer

Ответ

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