Skip to main content
POST
Reclassify a Closed Lead Run

Authorizations

X-API-Key
string
header
required

API key for authentication. Keys are prefixed with nxr_live_.

Path Parameters

id
string
required

Lead id. Lead id. This child router does not prevalidate UUID syntax; malformed values may become a server error in the real SQL path.

Body

application/json
status_key
string
required

Dynamic key that must exist in the selected run workflow; no static enum.

Minimum string length: 1
workflow_id
string<uuid>
workflow_run_id
string<uuid>
workflowRunId
string<uuid>
reason
string | null
discard_reason_code
string | null
discard_reason_label
string | null
discard_reason_note
string | null

Response

Historical closed-run transition. note is present only on a detected concurrent change.

success
enum<boolean>
required
Available options:
true
changed
boolean
required
previous_status
string | null
required
new_status
string
required
closed_run
enum<boolean>
required
Available options:
true
workflow_run
object
required
note
string
Last modified on September 8, 2026