curl --request POST \
--url https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"file_ids": [
"<string>"
],
"chunking_strategy": {
"type": "auto"
},
"attributes": {}
}'
{
"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
}
}
curl --request POST \
--url https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"file_ids": [
"<string>"
],
"chunking_strategy": {
"type": "auto"
},
"attributes": {}
}'
{
"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 for which to create a File Batch.
"vs_abc123"
OK
A batch of files attached to a vector store.
Was this page helpful?