Cancel a run
Cancel an agent run that is currently queued or in progress. Once cancelled, the run will transition to a cancelled state.
Not all runs can be cancelled. Runs that are in a terminal state (SUCCEEDED, FAILED, ERROR, BLOCKED, CANCELLED) return 400. Runs in PENDING state return 409 (retry after a moment). Self-hosted, local, and GitHub Action runs return 422.
Path parameters
The unique identifier of the run to cancel
Response
Run cancelled successfully
The ID of the cancelled run
Changes
Changed in 1 of the 2 revisions of this API.12
- ○
added the optional property
auth_urlto the response with the400statusresponse-optional-property-added
- ○
added the optional property
auth_urlto the response with the401statusresponse-optional-property-added
- ○
added the optional property
auth_urlto the response with the403statusresponse-optional-property-added
- ○
added the optional property
auth_urlto the response with the404statusresponse-optional-property-added
- ○
added the optional property
auth_urlto the response with the409statusresponse-optional-property-added
- ○
added the optional property
auth_urlto the response with the422statusresponse-optional-property-added
- ○
added the optional property
providerto the response with the400statusresponse-optional-property-added
- ○
added the optional property
providerto the response with the401statusresponse-optional-property-added
- ○
added the optional property
providerto the response with the403statusresponse-optional-property-added
- ○
added the optional property
providerto the response with the404statusresponse-optional-property-added
- ○
added the optional property
providerto the response with the409statusresponse-optional-property-added
- ○
added the optional property
providerto the response with the422statusresponse-optional-property-added
- ○