Cancel a batch
Changed onUse 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.
Request
- Base URL: https://api.twelvelabs.io/v1.3
- URL: https://api.twelvelabs.io/v1.3/analyze/batches/{batch_id}/cancel
- Auth: API key in header x-api-key
Path parameters
The unique identifier of the batch.
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.
Changes
- warning
deleted the
headerrequest parameterx-api-key - info
the endpoint scheme security
x-api-keywas added to the API
- warning
- info
api operation id
cancelremoved and replaced withanalyzeAsync_batches_cancel
- info