post https://api.us-east-1.relevance.ai/latest/datasets//documents/bulk_insert
Insert one or more documents.
This method is the same as /insert
but provides support for more than one document to be inserted at a time.
For each insertion, if an _id
is provided and a document with that ID already exists, all existing field values will be deleted and the new ones will be stored. If no _id
field is provided, one will automatically be added to the document.
This method will entirely replace the documents. If you would like to only partially update a document, use /update_where
.
If the document with the provided _id
doesn't exist, one will be automatically created.
If the provided dataset doesn't exist, one will be automatically created.
Limit the payload of documents to a maximum 100MB for optimal performance.