POST
/
vectors
/
update
PINECONE_API_KEY="YOUR_API_KEY"
INDEX_HOST="INDEX_HOST"

curl -X POST "https://$INDEX_HOST/vectors/update" \
	-H "Api-Key: $PINECONE_API_KEY" \
	-H 'Content-Type: application/json' \
	-d '{
		  "id": "id-3",
		  "values": [
		    4.0,
			2.0
		  ],
		  "namespace": "ns1"
		}'
{}

Authorizations

Api-Key
string
headerrequired

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

Body

application/json
id
string
required

Vector's unique id.

namespace
string

Namespace name where to update the vector.

setMetadata
object

Metadata to set for the vector.

sparseValues
object

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

values
number[]

Vector data.

Response

200 - application/json

The response for the update operation.