Cancel Batch

Cancel a batch job that is still in progress.

Cancel a batch job that is still in progress. The batch transitions to cancelling and then cancelled - any requests already completed before cancellation are still billed and available in the output file.

POST /v1/batches/:batch_id/cancel

Path parameters

batch_idstringrequired

The id of the batch.

Response

idstringoptional
object'batch'optional
status'cancelling' | 'cancelled'optional
cancelled_atinteger | nulloptional

Errors

StatusReason
404Batch not found or belongs to another workspace.