Create vector store file batch
Create a vector store file batch.
Path parameters
-
The ID of the vector store for which to create a File Batch.
POST
/vector_stores/{vector_store_id}/file_batches
curl \
-X POST https://api.openai.com/v1/vector_stores/vs_abc123/file_batches \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"file_ids":["string"],"chunking_strategy":{"type":"auto"}}'
Request example
{
"file_ids": [
"string"
],
"chunking_strategy": {
"type": "auto"
}
}
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
}
}