Run a node of a case
POST/api/v1/playbook-cases/:case_id/nodes/:node/run
Runs one node now. The cascade already runs every node whose inputs are set once a write, a settle or a resume makes it runnable, and never reruns a failed or done one: this is how a failed node is retried, and how a done node is recomputed after an upgrade changed its executor. A collect node takes its own input values as its output, any other node starts its executor with the node's input values mapped through the executor's input. The executor runs under the policy_ids of the case's playbook version, which must allow starting it: a decider, workflow or orchestration it may not start is 403 PLAYBOOK_EXECUTOR_FORBIDDEN, and an agent or tool fails the execution (FORBIDDEN). Only a ready, stale, failed or done node with every required input set runs; anything else is 409 PLAYBOOK_NODE_NOT_RUNNABLE. A paused case is 409 PLAYBOOK_CASE_PAUSED, and a case in a paused project 409 PROJECT_PAUSED.
An upstream node has no executor: running it pulls the current output of the node it names in the bound case, which must be done. This is the only way to refresh one that an upstream change left stale.
The output is written as an entry when the execution settles. A value equal to the node's current output writes no revision. If the node's inputs change while it runs, the execution settles as superseded and writes nothing.
Without wait the execution answers running and settles in the background. With wait: true it answers once the executor settles, or once it parks: a workflow task still open, or an orchestration run waiting on a person or a timer, settles the node when it closes or ends.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 413
- 429
- 500
- 502
- 4XX
The execution, running or settled
Bad request — a node the case's version does not declare
Unauthorized
Forbidden, or the version's policy_ids do not allow starting the executor
Case not found
The node cannot run now, or the case is paused
REQUEST_REJECTED — the request body is over the size the body parser accepts
QUOTA_EXCEEDED — a requests quota on the calling API key or its project is spent for the window; Retry-After says when it reopens
Response Headers
Seconds until the quota window admits a request again
Unexpected server error — INTERNAL_ERROR, with the raw message never forwarded
The deployment's admission service is asked about this write and did not answer — ADMISSION_UNAVAILABLE; the write did not happen
The deployment's admission service refused this write — answered under the service's own 4xx status, with its code (matching ^[A-Za-z_][A-Za-z0-9_]{0,63}$, not necessarily an ERROR_CODES key), message and meta; the write did not happen. A status this operation also declares on its own is documented there