Skip to main content
POST
/
v5
/
vector-stores
/
{vector_store_name}
/
upsert
Upsert Vectors
curl --request POST \
  --url https://api.egp.scale.com/v5/vector-stores/{vector_store_name}/upsert \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "vectors": [
    {
      "id": "<string>",
      "text": "<string>",
      "vector": [
        123
      ],
      "metadata": {}
    }
  ]
}
'
{
  "total_attempted": 123,
  "successful": 123,
  "failed": 123,
  "error_messages": [
    "<string>"
  ]
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Path Parameters

vector_store_name
string
required

The name of the vector store

Body

application/json

Request to upsert documents.

vectors
VectorDocumentRequest · object[]
required

Array of documents to upsert

Response

Successful Response

Response for batch insert/upsert operations.

total_attempted
integer
required

Total operations attempted

successful
integer
required

Successful operation count

failed
integer
required

Failed operation count

error_messages
string[]

Error messages from failed operations