Vectors
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
/
vectors
/
upsert
Authorizations
Api-Key
string
headerrequiredAn API Key is required to call Pinecone APIs. Get yours from the console.
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
The namespace 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?