Cancel a pending or running workflow run.
POST
/repos/{owner}/{repo}/actions/runs/{run_id}/cancel
Cancel a particular workflow run. Pending or running jobs of the run are cancelled. A run that has already finished, whether cancelled, failed, skipped or succeeded, is left unchanged. In both cases the endpoint responds with HTTP 204.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”owner
required
string
Owner of the repo
repo
required
string
Name of the repo
run_id
required
integer format: int64
ID of the workflow run
Responses
Section titled “Responses”Workflow run has been cancelled
Media typeapplication/json
APIForbiddenError is a forbidden error response
Media typeapplication/json
object
message
string
url
string
Examplegenerated
{ "message": "example", "url": "example"}APINotFound is a not found error response
Media typeapplication/json
object
errors
Array<string>
message
string
url
string
Examplegenerated
{ "errors": [ "example" ], "message": "example", "url": "example"}