POST
/
upsert
curl https://better-dodo-20522-us1-vector.upstash.io/upsert \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{"id": "id10",
  "vector": [0.44,0.8,0.05,0.72,0.83,0.49,0.6,0.48],
  "metadata": { "key": "value" } }'
{
  "result" : "Success"
}

Request

You can either upsert a single vector, or multiple vectors in an array.

id
string
required

The ID of the vector

vector
number[]
required

The vector data to upsert.

The provided vector should have the same number of dimensions as your index.

metadata
Object

The metadata of the vector. This is used to make it easier to identify the vector on queries.

Path

namespace
string

The namespace to use. Leave empty to use the default namespace.

Response

Response
Object

Returns "Success" on successful upsert operation.