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 type application/json
APIForbiddenError is a forbidden error response
Media type application/json
object
message
string
url
string
Example generated
{ "message": "example", "url": "example"}APINotFound is a not found error response
Media type application/json
object
errors
Array<string>
message
string
url
string
Example generated
{ "errors": [ "example" ], "message": "example", "url": "example"}