Update agent

Patches an Agent settings

Parametry ścieżki

agent_idstringWymagany
The id of an agent. This is returned on agent creation.

Nagłówki

xi-api-keystringOpcjonalny

Parametry zapytania

enable_versioning_if_not_enabledbooleanOpcjonalnyDomyślnie trueDeprecated

Deprecated: all agents are versioned. This parameter is ignored.

branch_idstringOpcjonalny
The ID of the branch to use

Żądanie

This endpoint expects an object.
conversation_configobjectOpcjonalny
Conversation configuration for an agent
platform_settingsobjectOpcjonalny
Platform settings for the agent are all settings that aren't related to the conversation orchestration and content.
workflowobjectOpcjonalny
Workflow for the agent. This is used to define the flow of the conversation and how the agent interacts with tools.
namestringOpcjonalny
A name to make the agent easier to find
tagslist of stringsOpcjonalny
Tags to help classify and filter the agent
version_descriptionstringOpcjonalny

Description for this version when publishing changes (only applicable for versioned agents)

proceduresmap from strings to optional objectsOpcjonalny
Procedure versions to publish, keyed by procedure_id. When provided, this map replaces the procedures from the current draft or branch tip. When omitted or null, unpublished procedure edits are used if present; otherwise, the branch tip's procedures are retained. Pass an empty object to remove all procedures.

Odpowiedź

Successful Response
agent_idstring
The ID of the agent
namestring
The name of the agent
conversation_configobject
The conversation configuration of the agent
metadataobject
The metadata of the agent
platform_settingsobjectOpcjonalny
The platform settings of the agent
phone_numberslist of objectsOpcjonalny
The phone numbers of the agent
whatsapp_accountslist of objectsOpcjonalny
WhatsApp accounts assigned to the agent
workflowobjectOpcjonalny
The workflow of the agent
access_infoobjectOpcjonalny
The access information of the agent for the user
tagslist of stringsOpcjonalny
Agent tags used to categorize the agent
version_idstringOpcjonalny
The ID of the version the agent is on
branch_idstringOpcjonalny
The ID of the branch the agent is on
main_branch_idstringOpcjonalny
The ID of the main branch for this agent
proceduresmap from strings to objectsOpcjonalny

Procedures keyed by procedure_id.

default_hold_audio_urlstringOpcjonalnyDomyślnie https://eleven-public-cdn-common.elevenlabs.io/convai/ambient-audio-assets/elevator1.mp3
URL of the default hold tone played to queued callers when no custom hold audio is uploaded, so the dashboard can preview it.

Błędy

422
Agents Update Request Unprocessable Entity Error