UpdateAgent updates an existing agent.
PATCH/api/v1/voice/agents/:id
Partial updates are supported - only provided fields are updated.
Updatable Fields
- name, type, password
- can_make_outbound, can_transfer, can_conference
- current_status, status
- did_id, user_id
Asterisk Sync
On success, updates PJSIP endpoint in Asterisk realtime DB.
Errors
- NOT_FOUND: Agent does not exist
- INVALID_ARGUMENT: Invalid field values
- PERMISSION_DENIED: Caller lacks voice:agent:write permission
Request
Responses
- 200
- default
A successful response.
An unexpected error response.