Update agent
Updates specific fields of an agent using its UUID. At least one field must be provided. Omitted keys are unchanged. New voice/runtime fields do not accept null (use empty string to clear voicemail or call-limit messages). LLM cannot be changed via API. Caution: When updating prompts or tools, include all data you want to keep (GET first, merge, then PATCH).
Authentication
API key for authentication. Example: raya_ABCD1234567890abcdef
Path parameters
Request
Array of key-description pairs. Each item has key and description only. If provided, replaces the agent’s output_fields.
Instructions for how to populate output_fields after a call. If provided, replaces the agent’s output_instructions.
Webhook URL for callbacks (sent on call completed or call failure). Must be a valid URL or null. See Webhooks for payload format and when webhooks are sent.
When true, the voice agent may use live call transfer to a human (India only).
Call language UUID. Use Auto detect (88296485-1c49-4931-919e-7333986e16da) for an agent that speaks several languages. See Language options.
Voice UUID. See /documentation/agent-voice-options.
Languages the agent speaks, as ISO 639-1 codes (hi, en, mr, te, kn, bn, as, gu, ml, ne, ta, pa). The first is the starting language. Two or more need language_id set to Auto detect (88296485-1c49-4931-919e-7333986e16da) and a multilingual voice_id that speaks all of them; otherwise the request gets a 400. More than 4 is allowed, but the response then has a note in messages: detection gets less reliable as the list grows (we recommend 3 or fewer). See Language options.
How the caller’s language is detected. auto: detect every turn. lock: lock to the first detected language, code-mix on (the caller can still mix in other languages). handoff: lock to the detected language, code-mix off. On the portal: Detect every turn / Lock to detected language (code-mix on or off).
Starting voice when voice_id is a composite voice (a mix of one voice per language that our team prepares on request): one of that composite’s member voices. null clears it. Any other voice gets a 400.
Function tools. Replaces the entire llm_tools list when provided.
Minimum user speech duration (seconds) before interruption is allowed.
Response
Instructions for how to populate output_fields after a call.
Array of key-description pairs. Each item has key and description only (no extra properties).
Agent arguments as a JSON object (e.g. {“contact_name”: “John”, “order_id”: “123”}). Not an array.
Inbound DID number (read-only; for reference)
Webhook URL for callbacks (sent on call completed or call failure). See Webhooks for payload format.
When true, the voice agent may use live call transfer to a human (India only). Default true.
Call language UUID. See /documentation/agent-language-options.
Voice UUID. See /documentation/agent-voice-options.
Languages the agent speaks (ISO 639-1); the first is the starting language. Empty for a single-language agent.
How the caller’s language is detected: auto (every turn), lock (first detected language, code-mix on) or handoff (lock, code-mix off).
Starting voice of a composite voice_id, or null.
Function tools ({ "llm_tools": [...] }). Empty array when none configured.
Minimum user speech duration (seconds) before interruption is allowed.
Notes about the request, present only when there are any: an inbound number moved from another agent, or more than 4 languages. The change itself was applied.

