Menu
Update a record
Update a record
POST
/vectors/updateUse it in a workflow
- Add a step and choose the Pinecone connector.
- Pick the Update a record action (under Data).
- Fill in the fields below, then reference the result from later steps as
{{updateARecord.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"id": "example-vector-1",
"values": [
0.1,
0.2,
0.3,
0.4,
0.5,
0.6,
0.7,
0.8
],
"sparseValues": {
"indices": [
1,
312,
822,
14,
980
],
"values": [
0.1,
0.2,
0.3,
0.4,
0.5
]
},
"setMetadata": {
"genre": "documentary",
"year": 2019
},
"namespace": "example-namespace",
"filter": {
"genre": {
"$in": [
"comedy",
"documentary",
"drama"
]
},
"year": {
"$eq": 2019
}
},
"dryRun": false
}
Response
Returns 200 with an object. Read it in later steps with {{updateARecord.response.data.<field>}}.
{
"matchedRecords": 42
}
Need more? See the Pinecone guide for connection setup and behaviour shared by every action.
Was this page helpful?