---
title: "Sweeps Cancel"
method: POST
path: "/bernayser/{sweep_id}/cancel"
---

# Sweeps Cancel

`POST /bernayser/{sweep_id}/cancel`

## Request

- Base URL: `https://www.clipzyn.com/v1`
- URL: `https://www.clipzyn.com/v1/bernayser/{sweep_id}/cancel`
- Auth: HTTP bearer

Cancel an active sweep through the engine's run and money policy.

The bernayser:write control call consumes no new quota. The engine cancels
downstream runs, settles or releases their reservations, and transitions
every nonterminal item. A foreign id is not_found and a terminal state yields
validation_error. Fix the id or state before retrying; retry transient
rate_limited or service_unavailable responses only after retry_after_sec. Requires the explicitly minted `bernayser:write` scope; bernayser:read permits safe projections and bernayser:write permits mutations. This BERNAYSER operation is quota-neutral. While dark it returns not_found, and a valid key without the required scope receives scope_missing. Fix a non-retryable request or credential before retrying; for rate_limited or service_unavailable, wait for retry_after_sec and retry once.

## Path parameters

- `sweep_id` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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