Skip to main content
PUT
/
api
/
v1
/
vector_stores
/
{vector_store_id}
Add Items
curl --request PUT \
  --url https://api.example.com/api/v1/vector_stores/{vector_store_id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "document_id": "<string>",
    "text": "<string>",
    "embedding": [
      123
    ],
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "document_type": "platform_file",
    "model_id": "platform",
    "metadata": {}
  }
]
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

vector_store_id
string<uuid>
required

Query Parameters

context_id
string<uuid> | null

Body

application/json
document_id
string
required
text
string
required
embedding
number[]
required
id
string<uuid>
document_type
enum<string>
default:platform_file
Available options:
platform_file,
external
model_id
default:platform
metadata
Metadata · object

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.

Response

Successful Response