Skip to main content

Change a lead field

PATCH 

/v1/agents/:agentId/lead-fields/:fieldKey

x-scope: "leads:write"

Changes a custom field's label, whether it is required, or its choices. The key and the type stay (to change them, add a new field). Built-in fields (built_in: true), the lead statuses included, can't be changed through the API (422 system_field). The AI's lead capture follows the change in the background, usually within a minute. A request that changes nothing returns the field as it is.

Request​

Responses​

The lead field as it now is.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.