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

id
string
required

Vector's unique id.

Required string length: 1 - 512
Example:

"example-vector-1"

values
number[]

Vector data.

Example:
[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]
sparseValues
object

Vector sparse data. Represented as a list of indices and a list of corresponded values, which must be the same length.

setMetadata
object

Metadata to set for the vector.

Example:
{ "genre": "documentary", "year": 2019 }
namespace
string

The <a href='https://docs.pinecone.io/docs/namespaces'>namespace</a> containing the vector to update.

Example:

"example-namespace"

Response

200
application/json
A successful response.

The response for the Update operation.