Docs

Cancel Run

Ask a run to stop. A run still waiting to start is cancelled at once and answers status "cancelled". A running run stops at its next checkpoint and then reports status "cancelled". Finished runs are unaffected.

POST

Path

Path parameters
stringrequired

The run's id, from Run a Workflow or List Runs.

Headers

Optional headers
string

Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. A key can also act in its child organizations, and, with "Use this key across all of your organizations" on, in every organization its creator can open in the app. List them with GET /v2/companies. Every response's X-Company-Id header names the organization it acted in. See Organizations.

Response fields

idstring

The run that was asked to stop.

statusstring

"cancelled" when the run had not started and was cancelled at once; otherwise the run status when the cancellation was requested, and the run reports "cancelled" once it stops.