# CancelCaptureRun

> Cancel a queued or running capture run; unspent credits are released. Irreversible. Write access, capture toolset, MCP tool cancel_capture_run.

> **Warning:**
> Irreversible. This operation removes or replaces something. MCP clients see it with `destructiveHint` set, and an agent should tell you what it will change and wait for your yes.

**Access:** [Write](https://developer.missin.co.uk/get-started/authentication.md#access-levels)

## Variables

| Variable | Type | Required | Accepts | Description |
|---|---|---|---|---|
| `runId` | `UUID!` | yes |  |  |

## Call it

```bash curl
curl https://api.missin.co.uk/graphql/v1 \
  -H "Authorization: Bearer $MISSIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"operationName":"CancelCaptureRun","variables":{"runId":"00000000-0000-0000-0000-000000000000"},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"e1c5f0053542ac20e900d3cc8362f3ae425ddcb2def78d5b0dece134ae97e59a"}}}'
```

## Document

```graphql
mutation CancelCaptureRun($runId: UUID!) { __typename cancelCaptureRun(input: {runId: $runId}) { __typename balance { __typename availableGbp } runId userErrors { __typename code field message } } }
```

Source: https://developer.missin.co.uk/reference/capture/cancel-capture-run
