# Cancel a queued, running, or blocked run
POST /api/runs/{runId}/cancel
## Request
```bash
curl -X POST 'https://sourced.sh/api/runs/{runId}/cancel' \
  -H 'Authorization: Bearer $SOURCED_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{}'
```
## Parameters

- runId (path, required): Run identifier.

## Request body

type: object
properties:
  reason: string

## Responses

### 200

Canceled run.
### 401


### 403


### 404


### 409

Run status cannot be canceled.
