Cancel runs in bulk
Cancels up to 100 runs in one environment.
Supports two modes:
- By IDs: provide run_ids in the request body to cancel specific runs. Query filters are ignored.
- By filter: omit run_ids and use the query parameters to match runs.
Only runs with status scheduled, queued or started are cancelled; other selected runs are skipped. A selection of more than 100 cancellable runs returns 422.
Required permission: runs.cancel.
Request
- Base URL: https://api.connic.co
- URL: https://api.connic.co/v1/projects/{project_id}/runs/bulk-cancel
- Auth: HTTP bearer
Path parameters
ID of the project the API key belongs to.
Query parameters
Environment to cancel runs in; only its runs are selected.
Only runs executed by this deployment.
Only runs queued at or after this time; applies only together with end_date.
Only runs queued at or before this time; applies only together with start_date.
Only runs in these statuses. Only scheduled, queued and started runs can be cancelled, so other values match no runs.
Only runs with at least one guardrail intervention of these outcomes.
Only runs of this agent.
Filter by A/B test variant names; use base for runs without a variant
Exclude runs with a test name
Run search text or filter expression, as in GET /runs.
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 2 revisions of this API.