Перейти к основному содержанию
PUT
/
v1
/
crm
/
requests
/
services
/
{id}
cURL
curl --request PUT \
  --url https://api.example.com/v1/crm/requests/services/{id}/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "service": 123,
  "tarif_price": "<string>",
  "tarif_duration": "<string>",
  "start_at": "2023-11-07T05:31:56Z",
  "end_at": "2023-11-07T05:31:56Z",
  "price": "<string>",
  "price_tax": "<string>",
  "price_discount": "<string>",
  "info": "<string>",
  "extra": "<unknown>",
  "tenant": 123,
  "request": 123,
  "client": 123,
  "request_inventory": 123,
  "worker": 123,
  "tarif": 123
}
'
{
  "id": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "service": 123,
  "tarif_price": "<string>",
  "tarif_duration": "<string>",
  "start_at": "2023-11-07T05:31:56Z",
  "end_at": "2023-11-07T05:31:56Z",
  "price": "<string>",
  "price_tax": "<string>",
  "price_discount": "<string>",
  "info": "<string>",
  "extra": "<unknown>",
  "tenant": 123,
  "request": 123,
  "client": 123,
  "request_inventory": 123,
  "worker": 123,
  "tarif": 123
}

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

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

Тело

service
integer
обязательно
tarif_price
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
tarif_duration
string
start_at
string<date-time> | null
end_at
string<date-time> | null
price
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_tax
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_discount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
info
string | null
extra
any
tenant
integer
request
integer | null
client
integer | null
request_inventory
integer | null
worker
integer | null
tarif
integer | null

Ответ

200 - application/json
id
integer
обязательно
created_at
string<date-time>
обязательно
updated_at
string<date-time>
обязательно
service
integer
обязательно
tarif_price
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
tarif_duration
string
start_at
string<date-time> | null
end_at
string<date-time> | null
price
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_tax
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_discount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
info
string | null
extra
any
tenant
integer
request
integer | null
client
integer | null
request_inventory
integer | null
worker
integer | null
tarif
integer | null