cURL
curl --request POST \ --url https://{projectHost}/collections/{collectionName}/docs/upsert \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "docs": [ { "example-field1": "example-value1", "example-field2": [ 0.1, 0.2, 0.3 ] }, { "example-field1": "example-value2", "example-field2": [ 0.4, 0.5, 0.6 ] } ] }'
{ "message": "Upsert request is accepted" }
Upsert documents into a collection. Note that the maximum supported payload size is 6MB.
Project API Key.
Collection name.
Upsert request accepted.
The response is of type object.
object
Was this page helpful?