Перейти к основному содержанию
PUT
/
v1
/
crm
/
inventories
/
states
/
{id}
cURL
curl --request PUT \
  --url https://api.example.com/v1/crm/inventories/states/{id}/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "comment": "<string>",
  "disable": true,
  "workshop": true,
  "color": "<string>"
}
'
{
  "id": 123,
  "name": "<string>",
  "comment": "<string>",
  "disable": true,
  "workshop": true,
  "color": "<string>"
}

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

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

Тело

name
string
обязательно
Maximum string length: 255
comment
string | null
Maximum string length: 512
disable
boolean
workshop
boolean
color
string
Maximum string length: 9

Ответ

200 - application/json
id
integer
обязательно
name
string
обязательно
Maximum string length: 255
comment
string | null
Maximum string length: 512
disable
boolean
workshop
boolean
color
string
Maximum string length: 9