---
title: "Cancel Batch"
method: POST
path: "/api/v1/camera-capture/transfer-batches/{batch_id}/cancel"
tags: ["v1", "Camera transfers"]
---

# Cancel Batch

`POST /api/v1/camera-capture/transfer-batches/{batch_id}/cancel`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/camera-capture/transfer-batches/{batch_id}/cancel`
- Auth: none declared

## Path parameters

- `batch_id` string, uuid, required

## Request body

- CancelTransferBatch
  - `idempotency_key` string, required
  - `expected_version` integer, required

## Response `202`

Successful Response

- TransferBatch
  - `id` string, uuid, required
  - `state` 'queued' | 'running' | 'paused' | 'needs_attention' | 'cancel_pending' | 'completed' | 'cancelled', required
  - `version` integer, required
  - `selected_run_count` integer, required
  - `selected_capture_count` integer, required
  - `confirmed_bytes` integer, required
  - `verified_file_count` integer, required
  - `created_at` string, date-time, required
  - `closed_at` string, date-time, nullable, required
  - `safe_error_code` 'source_revalidation_required' | 'cleanup_policy_unavailable' | 'upload_expired', nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
