Перейти к основному содержанию
PATCH
/
v1
/
crm
/
settings
/
custom_fields
/
{id}
cURL
curl --request PATCH \
  --url https://api.example.com/v1/crm/settings/custom_fields/{id}/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "client",
  "name": "<string>",
  "label": "<string>",
  "placeholder": "<string>",
  "required": true,
  "table": true,
  "filter": true,
  "type": "string",
  "options": "<unknown>"
}
'
{
  "id": 123,
  "key": "client",
  "name": "<string>",
  "label": "<string>",
  "type": "string",
  "placeholder": "<string>",
  "required": true,
  "table": true,
  "filter": true,
  "options": "<unknown>"
}

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

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

Тело

key
enum<string>
  • client - Client
  • service - Service
  • inventory - Inventory
  • inventory_car - Inventory Car
  • inventory_scooter - Inventory Scooter
  • inventory_motorcycle - Inventory Motorcycle
  • inventory_set - Inventory Set
  • inventory_group - Inventory Group
  • rental_point - Rental Point
  • category - Category
  • order - Order
  • order_inventory - Order Inventory
  • order_service - Order Service
  • funnel_lead - Funnel Lead
  • workshop - Workshop
  • document - Document
  • template - Template
Доступные опции:
client,
service,
inventory,
inventory_car,
inventory_scooter,
inventory_motorcycle,
inventory_set,
inventory_group,
rental_point,
category,
order,
order_inventory,
order_service,
funnel_lead,
workshop,
document,
template
name
string
Maximum string length: 255
label
string
Maximum string length: 255
placeholder
string | null
Maximum string length: 255
required
boolean
table
boolean
filter
boolean
type
enum<string>
  • string - String
  • html - Html
  • integer - Integer
  • decimal - Decimal
  • boolean - Boolean
  • date - Date
  • datetime - Datetime
  • color - Color
  • client - Client
  • inventory - Inventory
  • inventory_group - Inventory Group
  • inventory_set - Inventory Set
  • service - Service
  • workshop - Workshop
  • document - Document
  • template - Template
Доступные опции:
string,
html,
integer,
decimal,
boolean,
date,
datetime,
color,
client,
inventory,
inventory_group,
inventory_set,
service,
workshop,
document,
template
options
any

Ответ

200 - application/json
id
integer
обязательно
key
enum<string>
обязательно
  • client - Client
  • service - Service
  • inventory - Inventory
  • inventory_car - Inventory Car
  • inventory_scooter - Inventory Scooter
  • inventory_motorcycle - Inventory Motorcycle
  • inventory_set - Inventory Set
  • inventory_group - Inventory Group
  • rental_point - Rental Point
  • category - Category
  • order - Order
  • order_inventory - Order Inventory
  • order_service - Order Service
  • funnel_lead - Funnel Lead
  • workshop - Workshop
  • document - Document
  • template - Template
Доступные опции:
client,
service,
inventory,
inventory_car,
inventory_scooter,
inventory_motorcycle,
inventory_set,
inventory_group,
rental_point,
category,
order,
order_inventory,
order_service,
funnel_lead,
workshop,
document,
template
name
string
обязательно
Maximum string length: 255
label
string
обязательно
Maximum string length: 255
type
enum<string>
обязательно
  • string - String
  • html - Html
  • integer - Integer
  • decimal - Decimal
  • boolean - Boolean
  • date - Date
  • datetime - Datetime
  • color - Color
  • client - Client
  • inventory - Inventory
  • inventory_group - Inventory Group
  • inventory_set - Inventory Set
  • service - Service
  • workshop - Workshop
  • document - Document
  • template - Template
Доступные опции:
string,
html,
integer,
decimal,
boolean,
date,
datetime,
color,
client,
inventory,
inventory_group,
inventory_set,
service,
workshop,
document,
template
placeholder
string | null
Maximum string length: 255
required
boolean
table
boolean
filter
boolean
options
any