Upsert documents into a namespace.
Each document must include an _id field and the fields required by the index type (for example, _values for dense indexes or text fields for full-text search indexes).
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.
202601-alpha. APIs may continue to evolve before general availability._id already exists, it is completely replaced. Documents become searchable within approximately one minute. The namespace is auto-created on first upsert; use "__default__" if you don’t need partitioning.
documents array is validated against your index schema. If any item fails validation, the entire request fails and nothing is upserted. Field names starting with _ (reserved for system-managed fields like _id and _score) or $ (reserved for filter operators) are rejected.index.documents.batch_upsert(documents=..., batch_size=..., max_workers=..., show_progress=...), a client-side convenience that splits a large list into batches and issues concurrent POST /namespaces/{namespace}/documents/upsert requests in the background. It’s a wrapper around this endpoint, not a separate API.Required date-based version header
The namespace to upsert documents into.
The request for the upsert_documents operation.
The list of documents to upsert into the namespace.
1 - 1000 elementsThe documents were successfully accepted for upsert.
The response for the upsert_documents operation.
The number of documents successfully upserted.
2