Skip to main content
PATCH /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

Provide statuses, fields, or both.

statuses[] shape

fields[] shape

Responses

200 — Updated

statuses_upserted / fields_upserted are only present for the arrays you sent.

400 — Validation error

Also returned as "each status needs a key and a label" or "each field needs a key and a label".

401 — Authentication error

See Authentication.

404 — Not found

500 — Internal server error

Last modified on July 10, 2026