This page documents the canonical HTTP contract for this endpoint.
The developer-key route scope expression is leads:write|companies:write|deals:write. The handler also requires the write scope matching the field entity: leads:write for lead, companies:write for company, or deals:write for deal. The caller must also have user-admin or internal-admin permission. For a developer key, this permission is loaded from its creator; the scope alone is insufficient. Field key/entity/data type are not update fields in CustomFieldUpdate.
Path parameters
field_idrequiredstring
| Name | Type | Description |
|---|---|---|
| field_idrequired | string | - |
Body parameters
label· optionalstring
When present, non-empty and at most 80 characters.
description· optionalstring
At most 2,000 characters.
options· optionalarray
CustomFieldOption items.
is_filterable· optionalboolean
is_sortable· optionalboolean
is_searchable· optionalboolean
include_in_task_context· optionalboolean
include_in_sequence_variables· optionalboolean
include_in_ai_context· optionalboolean
ai_autofill· optionalobject
sync_to_leads_write_policy· optionalstring
manual, autofill_only, manual_or_autofill, or disabled.
| Name | Type | Description |
|---|---|---|
| label | string | When present, non-empty and at most 80 characters. |
| description | string | At most 2,000 characters. |
| options | array | CustomFieldOption items. |
| is_filterable | boolean | - |
| is_sortable | boolean | - |
| is_searchable | boolean | - |
| include_in_task_context | boolean | - |
| include_in_sequence_variables | boolean | - |
| include_in_ai_context | boolean | - |
| ai_autofill | object | - |
| sync_to_leads_write_policy | string | manual, autofill_only, manual_or_autofill, or disabled. |
Errors
| Status | Meaning |
|---|---|
| 401 | Missing or invalid authentication. |
| 403 | The key lacks the write scope matching the field entity, or the authenticated user lacks user-admin permission. |
| 404 | Field definition not found in the caller organization. |
| 422 | Invalid field metadata. |
