Update agent
Agents
Update agent
PUT /v1/agents/:id
PUT
Update agent
Updates an agent’s configuration. Only include fields you want to change — omitted fields keep their current values.
Request
Body parameters
Any field from Create agent can be updated. Pass only the fields you want to change.Response
200 OK — returns the updated agent object.
Behaviour
- Active calls are unaffected. Updating an agent while a call is in progress doesn’t change behaviour mid-call. New calls use the new config.
agent_idandapi_key_idare immutable. Trying to change them is ignored.- No partial validation. If you submit an invalid value for any field, the whole update fails.
Errors
| Code | Cause |
|---|---|
agent_not_found | ID doesn’t exist or isn’t yours |
prompt_too_long | New system_prompt exceeds limit |
invalid_voice_id | Voice not supported |