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
}
curl --request POST \
     --url https://index_name-project_id.svc.environment.pinecone.io/vectors/upsert \
     --header 'accept: application/json' \
     --header 'content-type: application/json'

Authorizations

Api-Key
string
header
required

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

Body

application/json

The request for the Upsert operation.

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.

Example:

"example-namespace"

Response

200
application/json
A successful response.

The response for the Upsert operation.

upsertedCount
integer

The number of vectors upserted.

Example:

10

Was this page helpful?