Перейти к основному содержанию
PATCH
/
v1
/
crm
/
requests
/
conditions
/
{id}
cURL
curl --request PATCH \
  --url https://api.example.com/v1/crm/requests/conditions/{id}/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "request": 123,
  "request_inventory": 123,
  "client": 123,
  "condition": 0,
  "value": "<string>",
  "split_client": 50,
  "split_company": 50
}
'
{
  "id": 123,
  "request": 123,
  "request_inventory": 123,
  "client": 123,
  "condition": 0,
  "value": "<string>",
  "split_client": 50,
  "split_company": 50
}

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

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

Тело

request
integer | null
request_inventory
integer | null
client
integer | null
condition
enum<integer>
  • 0 - PERCENT
  • 1 - FIXED
  • 2 - SPLIT
Доступные опции:
0,
1,
2
Требуемый диапазон: 0 <= x <= 32767
value
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
split_client
integer
Требуемый диапазон: 0 <= x <= 100
split_company
integer
Требуемый диапазон: 0 <= x <= 100

Ответ

200 - application/json
id
integer
обязательно
request
integer | null
request_inventory
integer | null
client
integer | null
condition
enum<integer>
  • 0 - PERCENT
  • 1 - FIXED
  • 2 - SPLIT
Доступные опции:
0,
1,
2
Требуемый диапазон: 0 <= x <= 32767
value
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
split_client
integer
Требуемый диапазон: 0 <= x <= 100
split_company
integer
Требуемый диапазон: 0 <= x <= 100