---
title: "Cancel batch (UI)"
method: POST
path: "/batches/{batch_id}/cancel"
tags: ["UI Support"]
---

# Cancel batch (UI)

`POST /batches/{batch_id}/cancel`

Cancel a batch and render the result, or (dev only) its supporting jinja context

## Path parameters

- `batch_id` number, required

## Headers

- `x-hail-return-jinja-context` boolean

## Response `200`

Successfully cancelled the batch.

- object

---

[API](https://skmtc.net/hail-is/apis/hail-services.md) · [All operations](https://skmtc.net/hail-is/apis/hail-services/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hail-is/hail-services/revisions/3bd6e13adfa6/schema)
