Перейти к основному содержанию
PUT
/
v1
/
crm
/
requests
/
{request_id}
/
weekday
cURL
curl --request PUT \
  --url https://api.example.com/v1/crm/requests/{request_id}/weekday/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "request": 123,
  "request_inventory": 123,
  "client": 123,
  "work_days": 16383,
  "rest_days": 16383,
  "rest_weekdays": [
    123
  ],
  "custom": true,
  "exclude_rest": true
}
'
{
  "id": 123,
  "request": 123,
  "request_inventory": 123,
  "client": 123,
  "work_days": 16383,
  "rest_days": 16383,
  "rest_weekdays": [
    123
  ],
  "custom": true,
  "exclude_rest": true
}

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

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

Тело

request
integer | null
request_inventory
integer | null
client
integer | null
work_days
integer
Требуемый диапазон: 0 <= x <= 32767
rest_days
integer
Требуемый диапазон: 0 <= x <= 32767
rest_weekdays
integer[]
custom
boolean
exclude_rest
boolean

Ответ

200 - application/json
id
integer
обязательно
request
integer | null
request_inventory
integer | null
client
integer | null
work_days
integer
Требуемый диапазон: 0 <= x <= 32767
rest_days
integer
Требуемый диапазон: 0 <= x <= 32767
rest_weekdays
integer[]
custom
boolean
exclude_rest
boolean