get
https://{subdomain}.kommo.com/api/v4/catalogs//custom_fields/
This method allows to get a list of custom fields in the account.
Limitations
The method is available for all account users.
Data type header when the request is successful
Content-Type: application/hal+json
Data type header in case of an error
Content-Type: application/problem+json
Response parameters
The method returns an array of custom field objects. The properties of the custom field object are listed below. Objects properties differ depending on the entity.
| Parameter | Data type | Description |
|---|---|---|
| id | int | Field ID |
| name | string | Field name |
| code | string | Field code that can be used to update the value of the field without passing the field ID in the request. |
| sort | int | Field sorting |
| type | int | Field type |
| entity_type | string | Entity type (leads, contacts, companies, catalogs) |
| enums | array|null | Available field values array. Only available for the fields with enum values. |
| enums[0] | object | Available field value model |
| enums[id] | int | Value ID |
| enums[value] | string | Value |
| enums[sort] | int | Value sorting |