Перейти к основному содержанию
PATCH
/
v1
/
crm
/
clients
/
ticks
/
{id}
cURL
curl --request PATCH \
  --url https://api.example.com/v1/crm/clients/ticks/{id}/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "code": "<string>",
  "comment": "<string>",
  "blacklist": true,
  "request_count": -1,
  "request_amount": "<string>",
  "debt_limit": "<string>",
  "tenant": 123
}
'
{
  "id": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "code": "<string>",
  "comment": "<string>",
  "blacklist": true,
  "request_count": -1,
  "request_amount": "<string>",
  "debt_limit": "<string>",
  "tenant": 123
}

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

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

Тело

name
string
Maximum string length: 255
code
string
Maximum string length: 9
Pattern: ^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$
comment
string | null
Maximum string length: 512
blacklist
boolean
request_count
integer | null
Требуемый диапазон: -2147483648 <= x <= 2147483647
request_amount
string<decimal> | null
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
debt_limit
string<decimal> | null
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
tenant
integer

Ответ

200 - application/json
id
integer
обязательно
created_at
string<date-time>
обязательно
updated_at
string<date-time>
обязательно
name
string
обязательно
Maximum string length: 255
code
string
Maximum string length: 9
Pattern: ^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$
comment
string | null
Maximum string length: 512
blacklist
boolean
request_count
integer | null
Требуемый диапазон: -2147483648 <= x <= 2147483647
request_amount
string<decimal> | null
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
debt_limit
string<decimal> | null
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
tenant
integer