Request cancellation for an in-flight run.
PENDING or RUNNING. You can optionally
include a reason to help with audit trails. The response returns the current run payload; subsequent
polling on GET /public/v1/task-runs/{runId} reflects the final status.
runId — UUID of the run to cancel.reason (string, optional) — Free-form text recorded on the run for auditing.202 Accepted — Cancellation was accepted. The response includes the run payload reflecting the
latest state. Runs that already reached a terminal status are returned unchanged.400 Bad Request — Invalid run ID.401 Unauthorized — Missing or malformed API key.404 Not Found — The run does not belong to the authenticated organization.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
UUID of the run to cancel.
Optional cancellation reason recorded for auditing.
1024Cancellation accepted.