API reference

API reference · API

Modify a vector store

POST/v1/vector_stores/{id}API key

Parameters

Path and query parameters
FieldTypeWhat it is
id (path)requiredstringThe vector store id, vs_ and 24 hex digits.

Request body

application/json, optional

Request body fields
FieldTypeWhat it is
namestring or null
metadataobject or nullAt most 16 pairs of strings.
expires_afterobject or null
expires_after.anchorrequired"last_active_at"
expires_after.daysrequiredintegerFrom 1 to 365.

Example

{
  "name": "string",
  "metadata": {},
  "expires_after": {
    "anchor": "last_active_at",
    "days": 1
  }
}

Answer 200

The store.

Fields of the 200 answer
FieldTypeWhat it is
idstring
object"vector_store"
created_atinteger
namestring
descriptionstring or null
usage_bytesintegerEvery chunk's text and vector, summed over the store's files.
file_countsobject
file_counts.in_progressinteger
file_counts.completedinteger
file_counts.failedinteger
file_counts.cancelledinteger
file_counts.totalinteger
statusstringOne of "expired", "in_progress", "completed".
expires_afterobject or null
expires_after.anchorrequired"last_active_at"
expires_after.daysrequiredintegerFrom 1 to 365.
expires_atinteger or null
last_active_atinteger or null
metadataobject
embedding_modelstringAntimatter's own: the embedding model the store's chunks are embedded with.
embedding_dimensionsinteger or nullAntimatter's own: the vectors' length, null until the first embedding names it.

Errors

  • 400OpenAI shaped error.
  • 401OpenAI shaped error.
  • 402OpenAI shaped error.
  • 403OpenAI shaped error.
  • 404OpenAI shaped error.
  • 429OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter