Data plane
Update
The Update
operation updates vector in a namespace.
If a value is included, it will overwrite the previous value.
If a set_metadata is included, the values of the fields specified in it will be added or overwrite the previous value.
POST
Authorizations
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.
Vector's unique id.
Required string length:
1 - 512
Example:
"example-vector-1"
Vector data.
Example:
[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]
Vector sparse data. Represented as a list of indices and a list of corresponded values, which must be the same length.
Metadata to set for the vector.
Example:
{ "genre": "documentary", "year": 2019 }
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.