POST
/
api
/
datasets
/
{id}
/
rows
/
upsert
curl --request POST \
  --url https://app.baseplate.ai/api/datasets/{id}/rows/upsert \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "rows": [
    {}
  ],
  "document_id": "<string>"
}'

Path Parameters

id
string
required

Dataset ID

Authorization
string
required

Baseplate API key. Must be in the format โ€œBearer $BASEPLATE_API_KEYโ€

Body

rows
array
required

Rows to upsert. See Overview for example.

document_id
string

The document ID to upsert. If not provided, a document ID will be created for you.