Agentic Logic

Cancel a check run

POST /v25-10-beta/agentic-logic/rules/{ruleId}/cancel-checks

Stops the check run a job belongs to. It works on jobs of either mode: a dry_run, including one started by run-gates, or a publish.

  • publishJobId (uuid, required) — The job to cancel. It must belong to the rule; an unknown job answers 404.

The cancel is live when the named job is still queued or running, or when the rule's AI repair run is working that job. A live cancel stops all of these in one transaction:

  • the named job, if it is still in flight;
  • the rule's live repair run, which ends abandoned and starts no further attempts;
  • every other queued or running job of the rule, publish or dry run.

Cancelled jobs end cancelled. Gates that were mid-run go back to pending; finished gates keep their results. A publish job cancelled before it promotes creates no version and leaves the active version unchanged.

The response is { job, cancelled }. job is the named job after the request, in the poll shape. cancelled is true when this request stopped anything. A failed job whose repair run this request stopped stays failed, with cancelled: true.

cancelled is false when the named job had already finished (succeeded, failed, or cancelled) and no repair run is working it. Nothing changes then, and other jobs of the rule keep running. Repeating a cancel is safe. A succeeded publish is not undone; use rollback for that.

Use the intelligems-access-token header. The token selects the organization; do not send orgId. The organization must have Agentic Logic enabled.

Rate Limit: 50 requests per 30s window, refilling 25 tokens every 30s.

post/v25-10-beta/agentic-logic/rules/{ruleId}/cancel-checks

Request

Path parameters

ruleIdstring uuid required

Request body

publishJobIdstring uuid required

Response

OK

cancelledboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.