---
title: "Cancel a queued investigation or interrupt its original Roder turn"
method: POST
path: "/api/v1/agent/roder/code_repairs/{id}/cancel"
tags: ["agent"]
---

# Cancel a queued investigation or interrupt its original Roder turn

`POST /api/v1/agent/roder/code_repairs/{id}/cancel`

## Request

- Base URL: `https://composal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://composal.com/api/v1/agent/roder/code_repairs/{id}/cancel`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object

## Response `202`

Investigation launch record

- VerifyCodeRepair
  - `id` string, required
  - `scenario_run_id` string, required
  - `trigger_kind` 'manual' | 'automatic', required
  - `launch_state` 'queued' | 'starting' | 'started' | 'unknown' | 'failed' | 'cancelled', required
  - `base_sha` string, required
  - `roder_thread_id` string, nullable, required
  - `roder_turn_id` string, nullable, required
  - `failure_code` string, nullable, required
  - `cancel_requested` boolean, required
  - `task` object, nullable, required
    - `turn_id` string, required
    - `status` string, required
    - `text` string, required

## Other responses

- `403`: Internal operator access is required
- `404`: Investigation is unavailable to this operator
- `422`: Original workspace authority is unavailable
- `503`: Cancellation recorded; interruption could not be confirmed with Roder

---

[API](https://skmtc.dev/composal/apis/vex-api.md) - [All operations](https://skmtc.dev/composal/apis/vex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/composal/apis/vex-api/revisions/74298a24e040?raw)
