---
title: "Cancel Batch Job"
method: POST
path: "/v1/accounts/{account_id}/batchJobs/{batch_job_id}:cancel"
tags: ["gateway.openapi_Gateway"]
---

# Cancel Batch Job

`POST /v1/accounts/{account_id}/batchJobs/{batch_job_id}:cancel`

Cancels an existing batch job if it is queued, pending, or running.

## Path parameters

- `account_id` string, required
- `batch_job_id` string, required

## Request body

- GatewayCancelBatchJobBody

## Response `200`

A successful response.

- object

---

[API](https://skmtc.net/fw-ai-external/apis/gateway-rest-api.md) · [All operations](https://skmtc.net/fw-ai-external/apis/gateway-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fw-ai-external/gateway-rest-api/versions/29a1e4db152c/schema)
