Menu
Upsert documents
Upsert documents
POST
/namespaces/{namespace}/documents/upsertUse it in a workflow
- Add a step and choose the Pinecone connector.
- Pick the Upsert documents action (under Data).
- Fill in the fields below, then reference the result from later steps as
{{upsertDocuments.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"documents": [
{
"_id": "doc-1",
"content": "Machine learning is a subset of artificial intelligence.",
"title": "Introduction to Machine Learning"
}
]
}
Response
Returns 202 with an object. Read it in later steps with {{upsertDocuments.response.data.<field>}}.
{
"upserted_count": 2,
"usage": {
"embed_total_tokens": 24
}
}
Need more? See the Pinecone guide for connection setup and behaviour shared by every action.
Was this page helpful?