---
title: "Cancel Operation"
method: POST
path: "/api/operations/{operation_id}/cancel"
tags: ["operations"]
---

# Cancel Operation

`POST /api/operations/{operation_id}/cancel`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/operations/{operation_id}/cancel`
- Auth: none declared

Cancel one of the caller's own in-flight operations.

404 covers three cases that must stay indistinguishable to the caller: no
such operation, an operation belonging to someone else, and one that has
already finished. Reporting them apart would turn this into an oracle for
whether another identity is currently running something.

## Path parameters

- `operation_id` string, uuid, required

## Headers

- `x-impersonate-identity-id` string, nullable

## Response `200`

Successful Response

- CancelOperationResponse: Result of asking to cancel one operation.
  - `canceled` boolean, required

## Other responses

- `422`: Validation Error

---

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