PATCH
/
agent
/
v1
curl --request PATCH \
  --url https://prod-api.ringg.ai/ca/api/v0/agent/v1 \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '{
  "operation": "edit_agent_display_name",
  "agent_id": "830f767a-397e-4b39-82ff-235cd344e2f9",
  "agent_display_name": "Updated Sales Assistant",
  "language": "en-US",
  "voice_id": "3b5c7d2a-8e9f-4a1b-9c6d-2e5f8a7b3c4d",
  "secondary_voice_id": "4c6d8e3b-9f0a-5b2c-ad7e-3f6a9b8c5d7e",
  "secondary_language": "hi-IN",
  "agent_prompt": "You are a helpful sales assistant.",
  "custom_variables": [
    "callee_name",
    "mobile_number",
    "company",
    "lead_source"
  ],
  "number_id": "5d7f9a2b-1c3e-4f6g-8h9i-0j1k2l3m4n5o",
  "kb_id": "7a9c2d5e-4f6b-1a2b-3c4d-5e6f7a8b9c0d",
  "whitelisted_domains": [
    "https://www.ringg.ai",
    "https://example.com"
  ],
  "voice_speed": 1.2
}'
{
  "message": "Agent updated successfully!",
  "agent_id": "830f767a-397e-4b39-82ff-235cd344e2f9"
}

Headers

X-API-KEY
string
required

(Required) Your Ringg AI API key.

Body

application/json

Response

200
application/json

Successful Response: Assistant updated successfully.

The response is of type object.