Update Agent Structure
This operation lets you update agent structure 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.
PATCH
Update Agent Structure
PATCH
Also returned as
See Authentication.
/workflows/:id/structure
Add or edit an agent’s funnel statuses and custom lead fields. Rows are upserted by key: an unrecognized key is inserted, an existing key is updated. This endpoint never deletes — removing a status or field stays a deliberate dashboard action, so leads already sitting on a status are never orphaned.
Path Parameters
Request Body
Providestatuses, fields, or both.
statuses[] shape
sort_order is refused for statuses (STATUS_ORDER_REQUIRES_REORDER_ENDPOINT). Use Reorder Statuses to change the order.
To rename a status, send only its key and the new label. This also works for the built-in stages (New, Contacted, In conversation and the escalation stage): their key, flags and order stay the same, and only their name changes. When you change an agent’s language, the built-in stages that still have their default name are renamed to the default name in the new language. A name you wrote yourself is kept.
fields[] shape
Responses
200 — Updated
statuses_upserted / fields_upserted are only present for the arrays you sent.
400 — Validation error
"each status needs a key and a label" or "each field needs a key and a label".
Field validation can also return invalid_field_type, invalid_metadata_key, or invalid_intake_value_map in error, with the rejected property in field.
401 — Authentication error
See Authentication.
404 — Not found
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.
Last modified on November 3, 2026
Update Agent Structure