/vector_stores/{vector_store_id}/filesAttach a file to a vector store
Creates an attachment between a file and a vector store. Supply the file's file_id and optionally configure chunking_strategy or attach attributes; use file batches for multi-file ingestion. The response includes the attached file's processing status.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
File attachment details, including the required file identifier and optional chunking and attribute settings.
A 400 is returned when the file input is invalid, the store has expired, or a file limit would be exceeded. A 404 is returned when the vector store does not exist; a 409 indicates the store is unavailable for the change or was modified concurrently; a 429 indicates a rate limit; and a 500 means the file could not be attached. The vector_store_id path parameter must identify the store, and file_id is required; attributes can contain at most 16 key-value pairs with keys no longer than 64 characters.