Update a 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.
For guidance and examples, see Update data.
Documentation Index
Fetch the complete documentation index at: https://docs.pinecone.io/llms.txt
Use this file to discover all available pages before exploring further.
Required date-based version header
The request for the update operation.
Vector's unique id.
1 - 512"example-vector-1"
Vector data.
[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 with the same length.
Metadata to set for the vector.
{ "genre": "documentary", "year": 2019 }The namespace containing the vector to update.
"example-namespace"
A metadata filter expression. When updating metadata across records in a namespace, the update is applied to all records that match the filter. See Understanding metadata.
{
"genre": { "$in": ["comedy", "documentary", "drama"] },
"year": { "$eq": 2019 }
}If true, return the number of records that match the filter, but do not execute the update. Default is false.
false
A successful response.
The response for the update operation.
The number of records that matched the filter (if a filter was provided).
42