Cancel vector store file batch
Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.
Path parameters
-
The ID of the vector store that the file batch belongs to.
-
The ID of the file batch to cancel.
POST
/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel
curl \
-X POST https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"id": "string",
"object": "vector_store.files_batch",
"created_at": 42,
"vector_store_id": "string",
"status": "in_progress",
"file_counts": {
"in_progress": 42,
"completed": 42,
"failed": 42,
"cancelled": 42,
"total": 42
}
}