Skip to main content
POST
Confirm your deployment before running this request. This page describes an API contract; a published reference does not establish hosted availability. Check the dated host report and obtain your deployment URL and credentials. Replace the example host if your provisioned service uses a different URL.
Cancel every live job that matches a tag filter. AND-match: a job must carry every supplied tag to be cancelled. Only queued / running / awaiting_approval jobs are affected — terminal jobs are excluded by the SQL filter, regardless of their tags. Default dry_run=true so callers always confirm the count before issuing a destructive op. Hard cap of 200 cancellations per call to keep the operation bounded; narrow the filter or call repeatedly if you legitimately need more.

Request body

CancelByTagRequest
string[]
required
Tag values to match — AND-semantics, same as GET /jobs?tag=. Up to 10 tags per request. Minimum items: 1. Maximum items: 10.
string,null
Optional reason stamped on every cancelled job. Maximum length: 500.
boolean
When true (default), counts what would be cancelled without issuing any cancellations. Always start here; flip to false once the count looks right. Default: true.

Response

CancelByTagResponse
boolean
required
integer
required
integer
required
string[]
required
IDs of every live job that matched the tag filter, regardless of dry_run. Capped at 200 to avoid huge response bodies; if you hit the cap, narrow your tag filter.

Status codes

Using this contract

Read the source OpenAPI document for declared schemas and alternatives. This page also includes documented corrections from the spec overlays. Example IDs and values are illustrative; replace them with records from your workspace.
Last modified on September 21, 2026