Body
Required
-
A list of File IDs that the vector store should use. Useful for tools like
file_search
that can access files.At least
1
but not more than500
elements. -
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.
POST
/vector_stores/{vector_store_id}/file_batches
curl \
--request POST 'https://api.openai.com/v1/vector_stores/vs_abc123/file_batches' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"file_ids":["string"],"chunking_strategy":{"type":"auto"},"attributes":{}}'
Request examples
{
"file_ids": [
"string"
],
"chunking_strategy": {
"type": "auto"
},
"attributes": {}
}
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
}
}