POST
/
projects
/
{projectName}
/
collections
/
{collectionName}
/
docs
/
upsert
curl --request POST \
  --url https://{baseUrl}/projects/{projectName}/collections/{collectionName}/docs/upsert \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "docs": [
    {
      "example-doc1": {
        "example-field1": "example-value1",
        "example-field2": [
          0.1,
          0.2,
          0.3
        ]
      }
    },
    {
      "example-doc2": {
        "example-field1": "example-value2",
        "example-field2": [
          0.4,
          0.5,
          0.6
        ]
      }
    }
  ]
}'
{
  "message": "Upsert request is accepted"
}

Authorizations

x-api-key
string
header
required

Project API Key.

Path Parameters

projectName
string
required

Project name.

collectionName
string
required

Collection name.

Body

application/json

Response

202
application/json

Upsert request accepted.

The response is of type object.