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.
Path
The run's id, from Run a Workflow or List Runs.
Headers
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
idstringThe 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.