---
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`.

OAuth tokens and personal access tokens (classic) need the `repo` scope 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-7.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-7/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-7/versions/5438365412fe/schema)
