Update an Agent
This operation lets you update an agent for the authenticated Nexor account. This reference documents verified path, query, and top-level JSON body fields, observed response status codes, and top-level response fields. Provider-owned or deeply nested response shapes may remain open.
/workflows/:id
Rename an agent, edit its description, activate/pause it, or make it reply-only. Agents are born paused when created via the API — this is the only way to turn one on programmatically.
Path Parameters
Request Body
Provide at least one of the following.Responses
200 — Updated
pending_runs is only present when activating, and reflects leads whose cadence resumes immediately.
400 — Validation error
400 — Activation blocked
Appointment-goal agents need at least one active meeting type before they can be activated:
401 — Authentication error
See Authentication.
404 — Not found
409 — A draft is in the way
Moving a task (workflow) to another agent (master_workflow) with master_workflow_id always changes the live agents right away. It is refused while the agent the task leaves, or the agent it moves to, has a draft with unpublished changes:
409 — The task and the agent each own a WhatsApp number
An agent owns only one WhatsApp number. When the task and the agent it moves to each own one, the move is refused and the response names both numbers:
other_tasks_using_it tasks. When provider is kapso, unbind it with Assign a WhatsApp Number and workflow_id: null. Nothing moved.
A move sent by Nexor AI together with other changes is refused with 409 draft_mixed_move: send the move alone. API keys never get this response.
500 — Internal server error
Authorizations
API key for authentication. Keys are prefixed with nxr_live_. To work inside a sub-account with a main account key, also send the optional X-Nexor-Sub-Account-Id header.
Path Parameters
Workflow identifier.
Body
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
8001000Moves the task to this agent. The move always applies to the live agents right away, never to a draft. null detaches the task from its agent. Refused with 409 task_in_open_draft while the agent the task leaves or the agent it moves to has a draft with unpublished changes, and with 409 whatsapp_provider_assignment_lineage_change_requires_unassign when the task and the destination agent each own a WhatsApp number.
es-CL, es-MX, es-PE, es-CO, es-AR, es-US, en-US, en-AU, ko-KR, pt-BR, fr-FR, ar-AE, zh-CN, vi-VN, th-TH Valid IANA time-zone name.
cl, mx, pe, co, ar, es, latam, us, au, gb, in, nz, kr, br, pt, 200200200Reply-only switch. true: the agent never initiates contact (no first contact and no cadence when a lead enrols or is transferred in) and only answers when the lead writes. false: normal outbound behavior.
Response
Successful response.
true Persisted value of the reply-only switch, read back from the stored agent.