---
title: "Cancel Run"
method: POST
path: "/api/v3/automations/{automation_id}/runs/{run_id}/cancel"
tags: ["Automations"]
---

# Cancel Run

`POST /api/v3/automations/{automation_id}/runs/{run_id}/cancel`

## Request

- Base URL: `https://api.nationgraph.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.nationgraph.com/api/v3/automations/{automation_id}/runs/{run_id}/cancel`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nationgraph/apis/nationgraph-api/docs/api/v3/automations/:automation_id/runs/:run_id/cancel/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `automation_id` string, required
- `run_id` string, required

## Response `200`

Successful Response

- AutomationRunResponse
  - `id` string, uuid, required
  - `automation_id` string, uuid, required
  - `status` 'pending' | 'executing' | 'completed' | 'failed' | 'cancelled', required
  - `created_at` string, date-time, required
  - `completed_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/nationgraph/apis/nationgraph-api.md) - [All operations](https://skmtc.dev/nationgraph/apis/nationgraph-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nationgraph/apis/nationgraph-api/revisions/85804e68d86d?raw)
