Upsert vectors
The upsert
operation writes vectors into a namespace. If a new value is upserted for an existing vector ID, it will overwrite the previous value.
For guidance and examples, see Upsert data.
POST
https://{index_host}
/
vectors
/
upsert
Authorizations
Api-Key
string
headerrequiredAn API Key is required to call Pinecone APIs. Get yours at https://www.pinecone.io/start/
Body
application/json
The request for the upsert
operation.
vectors
object[]
requiredAn array containing the vectors to upsert. Recommended batch limit is 100 vectors.
namespace
string
This is the namespace name where you upsert vectors.
Response
200 - application/json
The response for the upsert
operation.
upsertedCount
integer
The number of vectors upserted.
Was this page helpful?