Skip to main content
POST
Cancel Batch
Cancel a batch job that is currently in progress. Once cancelled, the batch cannot be resumed.
string
required
The ID of the batch to cancel (e.g., batch-abc123).

Returns

string
The ID of the cancelled batch.
string
The object type, which is always batch.
string
The API endpoint that was used for the batch.
string
The batch status, which will be canceled.
integer
The Unix timestamp when the batch was cancelled.
object
Request statistics at the time of cancellation.