curl --request POST \
--url https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"object": "vector_store.files_batch",
"created_at": 123,
"vector_store_id": "<string>",
"status": "in_progress",
"file_counts": {
"in_progress": 123,
"completed": 123,
"failed": 123,
"cancelled": 123,
"total": 123
}
}Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.
curl --request POST \
--url https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"object": "vector_store.files_batch",
"created_at": 123,
"vector_store_id": "<string>",
"status": "in_progress",
"file_counts": {
"in_progress": 123,
"completed": 123,
"failed": 123,
"cancelled": 123,
"total": 123
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the vector store that the file batch belongs to.
The ID of the file batch to cancel.
OK
A batch of files attached to a vector store.
The identifier, which can be referenced in API endpoints.
The object type, which is always vector_store.file_batch.
vector_store.files_batch The Unix timestamp (in seconds) for when the vector store files batch was created.
The ID of the vector store that the File is attached to.
The status of the vector store files batch, which can be either in_progress, completed, cancelled or failed.
in_progress, completed, cancelled, failed Show child attributes
Was this page helpful?