Stop a run
The run stops where it is.
POST/v1/workflow-runs/{runId}/cancel
What it already changed stays changed.
Requires the workflows:write scope. Operation my.workflows.runs.cancel. MCP tool my_workflows_runs_cancel. CLI: grid82 my workflows runs cancel (npx grid82).
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
runId | string | yes |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Idempotency-Key | string | no | Any unique string. Sending the same key with the same request again returns the first response (marked Idempotency-Replayed: true) instead of running it twice. Reusing it for a different request is refused with 409. Kept for 24 hours. Up to 255 characters. |
Response
Success
dataobjectrequiredRefused
errorobjectrequired