v3
latestOpenAPI 3.1.02026-07-3197486526.1 KBCancel a batch
Use this method to request cancellation for a batch with the pending or processing status.
When you invoke this method, the platform performs the following steps:
- Cancels the items in the queued status.
- Finishes the analysis for the items in the processing status.
The batch status changes to canceling immediately, and to canceled after every item reaches ready, failed, or canceled. You are not billed for canceled or failed items.
Path parameters
The unique identifier of the batch.
Headers
Your API key.
<Note title="Note"> You can find your API key on the <a href="https://playground.twelvelabs.io/dashboard/api-keys" target="_blank">API Keys</a> page. </Note>Response
The platform accepted the cancellation request. Items already in the processing status continue until processing finishes. The batch status is canceling until every item reaches ready, failed, or canceled, then becomes canceled. The response shows the batch state at the time of the request. To confirm the batch is fully canceled, use the GET method of the /analyze/batches/{batch_id} endpoint.