Skip to main content

Update an agent's settings

PATCH 

/v1/agents/:agentId

x-scope: "agents:write"

Changes the settings you send: the name, the description, the Main Instructions (instructions), the time zone, the AI handoff and comment auto-hide. Send at least one (422 no_settings otherwise). Everything is validated before anything changes. instructions replaces the whole text, and the AI follows the new text on its next replies, usually within a minute; sending the text the agent already has changes nothing. A key can't change an agent's status (so it can't delete one), ai_model, model_provider, avatar_url or language: sending any of them with a value is 422 field_not_writable, with the field in param, and nothing changes. Deleting an agent stays in the dashboard; follow-ups have updateFollowUpSettings, and the AI's switch per channel updateConnection.

Request​

Responses​

The agent and its settings as they now are.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.