Skip to main content

Cancel a workflow run

Cancels a workflow run using its `id`. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.

POST/repos/{owner}/{repo}/actions/runs/{run_id}/cancel
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
owner string
required
repo string
required
run_id integer
required

The id of the workflow run.

Responses

application/json object

Response

Response body object