POST
/
vectors
/
upsert
curl --request POST \
     --url https://index_name-project_id.svc.environment.pinecone.io/vectors/upsert \
     --header 'accept: application/json' \
     --header 'content-type: application/json'
{
  "upsertedCount": 10
}

Authorizations

Api-Key
string
headerrequired

An API Key is required to call Pinecone APIs. Get yours at https://app.pinecone.io/.

Body

application/json
vectors
object[]
required

An array containing the vectors to upsert. Recommended batch limit is 100 vectors.

namespace
string

This is the <a href='https://docs.pinecone.io/docs/namespaces'>namespace</a> name where you upsert vectors. Not supported by projects on the gcp-starter environment.

Response

200 - application/json
upsertedCount
integer

The number of vectors upserted.

Was this page helpful?