Modify a vector store
Updates the name, description, expiration policy or metadata of an existing vector store. The embedding model, embedding dimensions, retrieval mode, extraction model and max hops are fixed when a store is created, and chunking is set per attached file: sending any of them returns 400 with a message that says what to do instead (a new store from the same file IDs; re-attaching the file). Unknown fields are rejected the same way. Returns 410 once the vector store has expired.
Authorizations
Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.
Headers
Optional external end-user identifier forwarded by the API gateway.
Path Parameters
The ID of the vector store to modify.
Body
Request body for modifying a vector store. Only name, description, expires_after and metadata can change; embedding_model, embedding_dimensions, retrieval_mode, extraction_model and max_hops are fixed at creation, chunking_strategy is set per attached file, and any such field (or an unknown one) is rejected with 400.
The name of the vector store.
255A description for the vector store. Set null (or empty) to clear it.
The expiration policy for a vector store.
Set of 16 key-value pairs that can be attached to an object. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
Response
OK
A vector store is a collection of processed files that can be used by the file_search tool.
The identifier, which can be referenced in API endpoints.
The object type, which is always 'vector_store'.
The Unix timestamp (in seconds) for when the vector store was created.
-9007199254740991 <= x <= 9007199254740991The name of the vector store.
The total number of bytes used by the files in the vector store.
-9007199254740991 <= x <= 9007199254740991The embedding model used for this vector store. Resolved at creation time from the requested or auto model. Null for legacy vector stores.
The number of dimensions for the embedding vectors in this vector store. Null for legacy vector stores. If the embedding model's declared dimensions stop including this size, or the model returns embeddings of another width, search fails with 412 and new files fail to ingest.
0 < x <= 9007199254740991Retrieval mode, frozen at creation. 'hybrid' (the default for new stores): vector similarity and full-text keyword search over the chunk text, fused by reciprocal rank fusion. 'vector': vector similarity search only. 'graph': GraphRAG — entities and relations are extracted at ingest and queries traverse the knowledge graph.
vector, hybrid, graph File processing status counts.
The status of the vector store. 'expired' means the store has expired, 'in_progress' means files are still being processed, 'completed' indicates that the vector store is ready for use.
expired, in_progress, completed The Unix timestamp (in seconds) for when the vector store was last active: searched (directly or via file_search), modified, or had files ingested, re-tagged or removed. Searches update it at most once a minute; the service's own cleanup, such as removing an expired file, does not count.
-9007199254740991 <= x <= 9007199254740991Set of 16 key-value pairs that can be attached to an object. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.
The Unix timestamp (in seconds) for when the vector store was last used.
-9007199254740991 <= x <= 9007199254740991The model used for entity/relation extraction on graph stores. Null for non-graph stores.
Graph expansion depth for graph-mode queries. Null for non-graph stores.
1 <= x <= 4The expiration policy for a vector store.
The Unix timestamp (in seconds) for when the vector store will expire: last_active_at plus expires_after.days.
-9007199254740991 <= x <= 9007199254740991A description for the vector store. Can be used to describe the vector store's purpose.