---
title: "Cancel a workflow run"
method: POST
path: "/repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
tags: ["actions"]
---

# Cancel a workflow run

`POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel`

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.

## Path parameters

- `owner` string, required
- `repo` string, required
- `run_id` integer, required

## Response `202`

Response

- EmptyObject — An object without any properties.

## Other responses

- `409` — Conflict

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-4.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-4/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-4/versions/ee6c7a46328e/schema)
