Skip to main content
PATCH
/
v1
/
voiceai
/
agents
/
{agent_id}
Update Agent
curl --request PATCH \
  --url https://api.example.com/v1/voiceai/agents/{agent_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "conversation_config": {
    "language": "<string>",
    "voice_id": "<string>",
    "first_message": "<string>",
    "system_prompt": "<string>",
    "temperature": 0.5,
    "use_rag": true,
    "tools": [
      {
        "name": "<string>",
        "description": "<string>",
        "enabled": true
      }
    ]
  },
  "knowledge_base": [
    "<string>"
  ]
}
'
{
  "agent_id": "<string>",
  "name": "<string>",
  "conversation_config": {
    "language": "<string>",
    "voice_id": "<string>",
    "first_message": "<string>",
    "system_prompt": "<string>",
    "temperature": 123,
    "use_rag": true,
    "tools": [
      {
        "name": "<string>",
        "description": "<string>",
        "enabled": true
      }
    ]
  },
  "created_at": 123,
  "phone_number_id": "<string>",
  "knowledge_base": [],
  "phone_numbers": []
}

Headers

x-api-key
string | null

API key for authentication

Path Parameters

agent_id
string
required

The ID of the agent to update

Body

application/json
name
string | null
conversation_config
PartialConversationConfig · object
knowledge_base
string[] | null

Response

Successful Response

agent_id
string
required
name
string
required
conversation_config
ConversationConfig · object
required
created_at
integer | null
phone_number_id
string | null
knowledge_base
KnowledgeBaseItem · object[]
phone_numbers
PhoneNumberDetail · object[]