Menu
Update documents
Update documents
POST
/namespaces/{namespace}/documents/updateUse it in a workflow
- Add a step and choose the Pinecone connector.
- Pick the Update documents action (under Data).
- Fill in the fields below, then reference the result from later steps as
{{updateDocuments.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"documents": [
{
"_id": "doc-1",
"_remove_fields": [
"content"
],
"title": "Updated title"
}
],
"filter": {
"category": {
"$eq": "news"
}
},
"set_fields": {
"category": "archive"
},
"remove_fields": [
"reviewer"
]
}
Response
Returns 202 with an object. Read it in later steps with {{updateDocuments.response.data.<field>}}.
{
"matched_records": 42,
"usage": {
"embed_total_tokens": 24
}
}
Need more? See the Pinecone guide for connection setup and behaviour shared by every action.
Was this page helpful?