---
title: "Cancel Run"
method: POST
path: "/api/runs/{run_id}/cancel"
---

# Cancel Run

`POST /api/runs/{run_id}/cancel`

## Path parameters

- `run_id` string, uuid, required

## Response `200`

Successful Response

- RunDTO
  - `runId` string, uuid, required
  - `repoId` integer, required
  - `source` RunSourceDTO, required
    - `kind` string, required
    - `label` string, required
    - `url` string, nullable
  - `status` 'queued' | 'running' | 'delivered' | 'failed' | 'stale' | 'cancelled', required
  - `summary` string, nullable, required
  - `filesChanged` string[], required
  - `commitSha` string, nullable, required
  - `createdAt` string, date-time, nullable, required
  - `finishedAt` string, date-time, nullable, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/codealmanac/apis/codealmanac-api.md) · [All operations](https://skmtc.dev/codealmanac/apis/codealmanac-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/codealmanac/codealmanac-api/revisions/bc053e1aa7f6/schema)
