Cancel Run
POST/v1/agents/:agent_id/runs/:run_id/cancel
Cancel a run.
Requests cancellation by updating the run status to cancelling.
This endpoint does not currently guarantee interruption of work already running
in a worker.
Cancellation is idempotent: calling cancel on an already-cancelled or completed
run returns the current run state (not 409 Conflict).
Status Codes:
202: Cancellation accepted404: Agent or run not found
Request
Responses
- 202
- 400
Successful Response
Validation Error