# Cancel run `POST` `/api/v1/market-maps/{id}/runs/{run_id}/cancel` Cancel a run that is PENDING or PROCESSING. Returns 409 if the run is already in a terminal state (COMPLETE, FAILED, or CANCELED). ## Path parameters | Name | Type | Required | Description | |------|------|----------|-------------| | id | string | yes | UUID of the market map | | run_id | string | yes | UUID of the run | ## Response `200 OK` — `application/json` | Field | Type | Description | |-------|------|-------------| | id | string | UUID of the canceled run | | status | string | New status (CANCELED) | ## Errors | Status | Description | |--------|-------------| | 400 | Bad Request | | 403 | Forbidden | | 404 | Not Found | | 409 | Conflict |