Перейти к основному содержанию
POST
/
v1
/
crm
/
inventories
/
states
cURL
curl --request POST \
  --url https://api.example.com/v1/crm/inventories/states/ \
  --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>"
}

Тело

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

Ответ

201 - 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