---
title: "Cancel Operation"
method: DELETE
path: "/v1/operations/{operation_id}"
tags: ["Operations"]
---

# Cancel Operation

`DELETE /v1/operations/{operation_id}`

## Request

- Base URL: `https://api.robosystems.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.robosystems.ai/v1/operations/{operation_id}`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Cancels a pending or running operation. Emits a cancellation event to any active SSE connections. Cannot cancel completed or failed operations, or a running operation that cannot be stopped (graph creation, tier changes, materialization, period close), which returns 409.

## Path parameters

- `operation_id` string, required: Operation identifier

## Response `200`

Successful Response

- object

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: Access denied
- `404`: Resource not found
- `409`: Operation already completed or failed — cannot cancel
- `422`: Validation Error
- `429`: Rate limit exceeded
- `500`: Internal server error

---

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