/{index_id}/upsert
Inserts a new vector or updates an existing one in the specified index.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
id | string | No | A unique identifier for the vector. If not provided, one will be auto-generated. |
embedding | array | Yes | An array of floating-point numbers representing the vector. |
metadata | object | No | Associated key-value metadata. |
delete_protection | boolean | No | If true, prevents the vector from being deleted. |
Example Requests
- cURL
- Python SDK
- JavaScript SDK

