Updating a custom field

This method allows to update a singular custom field of an entity(leads/contacts/companies)

Limitations
The method is available for administrator users only.

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

Method returns an updated field object.

ParameterData typeDescriptionIs the field mandatorySupported field types
idintField IDAvailable for all field types
namestringField nameAvailable for all field types
codestringField code that can be used to update the value of the field without passing the field ID in the requestAvailable for all field types
sortintField sorting in the field groupAvailable for all field types
group_idstringField group IDAvailable for all lead, contact, company fields
is_api_onlyboolDefines whether the field is editable via API onlyAvailable for all lead, contact fields
required_statusesarray|nullArray of the fields required to change a lead statusAvailable for all lead, contact, company fields
required_statuses[0]objectRequired field modelAvailable for all lead, contact, company fields
required_statuses[0][status_id]intID of the stage which requires the current field to have a value before the lead can be movedAvailable for all lead, contact, company fields
required_statuses[0][pipeline_id]intID of the pipeline which requires the current field to have a value before the lead can be movedAvailable for all lead, contact, company fields
remindstring|nullBirthday reminders setting (never, day – day before the event, week – week before the event, month – month before the event)Available only for the birthday type fields
enumsarrayAvailable field values array✅(only if you update a field of types:
-multiselect
-radiobutton
-select
Available for the following field types:
--multiselect
-radiobutton
-select
enums[0]objectAvailable field value model✅(only if you update a field of types:
-multiselect
-radiobutton
-select
Available for the following field types:
-multiselect
-radiobutton
-select
enums[0][value]stringValue✅(only if you update a field of types:
-multiselect
-radiobutton
-select
Available for the following field types:
-multiselect
-radiobutton
-select
enums[0][sort]stringValue sorting✅(only if you update a field of types:
-multiselect
-radiobutton
-select
Available for the following field types:
-multiselect
-radiobutton
-select
nestedarrayNested values arrayAvailable for the following field types:
category
nested[0]objectNested value modelAvailable for the following field types:
category
nested[0][id]intNested value ID. Shouldn’t be passed when creating a new valueAvailable for the following field types:
category
nested[0][parent_id]intNested value parent IDAvailable for the following field types:
category
nested[0][value]stringThe value of the nested valueAvailable for the following field types:
category
nested[0][sort]intNested value sortingAvailable for the following field types:
category
nested[0][request_id]stringTemporary identifier of a nested value. Identifier should be unique for the request, isn’t saved anywhere, and is used to create more than one nesting level within one requestAvailable for the following field types:
category
nested[0][parent_request_id]stringTemporary identifier of a nested value parent. Identifier is used only at the time of the request, isn’t saved anywhere, and defines the nesting level of the added element if the parent element hasn’t been created yetAvailable for the following field types:
category
Language
Credentials
OAuth2
URL
Click Try It! to start a request and see the response here!