runs
Cancel run
Cancels a run that is scheduled, queued, running or waiting for an approval.
Only runs with status scheduled, queued, started or awaiting_approval can be cancelled; other statuses return 400. A running run is marked cancelled immediately and its agent stops shortly after. Pending approvals of the run expire.
Required permission: runs.cancel.
post/v1/projects/{project_id}/runs/{run_id}/cancel
Request
- Base URLhttps://api.connic.co
- AuthHTTP bearer
Path parameters
project_id, string uuid required
ID of the project the API key belongs to.
run_id, string uuid required
Run ID from GET /runs.
Response
Successful Response
Public Run Cancel Response required
ok, boolean required
Whether the operation succeeded.
message, 'Run cancelled' | 'Cancel signal sent' required
Run cancelled when a scheduled or queued run was cancelled before it started. Cancel signal sent when the run was already executing and is being stopped.
Changes
No recorded changes to this operation across all 17 revisions of this API.