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.