---
title: "Upsert vectors."
method: POST
path: "/api/v1/tenants/{tenant_id}/vectors/upsert"
tags: ["Vectors"]
---

# Upsert vectors.

`POST /api/v1/tenants/{tenant_id}/vectors/upsert`

## Request

- Base URL: `https://api.scalix.world`
- URL: `https://api.scalix.world/api/v1/tenants/{tenant_id}/vectors/upsert`
- Auth: HTTP bearer

Inserts or updates a batch of vectors in a collection.

## Path parameters

- `tenant_id` string, required

## Request body

- VectorUpsertRequest: Upsert a batch of vectors into a collection.
  - `collection` string, required
  - `entries` VectorEntry[], required
    - `id` string, required
    - `embedding` number[], required: The embedding values.
    - `metadata` object, nullable

## Response `200`

Vectors upserted

## Other responses

- `401`: Missing or invalid API key
- `500`: Internal error

---

[API](https://skmtc.dev/scalix/apis/scalix-cloud-api.md) · [All operations](https://skmtc.dev/scalix/apis/scalix-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalix/apis/scalix-cloud-api/revisions/2c04ca0a90bb?raw)
