Vectors
Update a vector
The update
operation updates 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.
POST
/
vectors
/
update
Authorizations
Api-Key
string
headerrequiredAn API Key is required to call Pinecone APIs. Get yours from the console.
Body
application/json
The request for the update
operation.
id
string
requiredVector's unique id.
values
number[]
Vector data.
sparseValues
object
Vector sparse data. Represented as a list of indices and a list of corresponded values, which must be with the same length.
setMetadata
object
Metadata to set for the vector.
namespace
string
The namespace containing the vector to update.
Response
200 - application/json
The response for the update
operation.
Was this page helpful?