Documents
Upsert Data Rows
Upserts the rows. Creates a document if no document_id is provided in the request. If one is provided, and it already exists, the data rows will be replaced.
POST
/
api
/
datasets
/
{id}
/
rows
/
upsert
Authorization
Header
Path
Body
curl --request POST \
--url https://app.baseplate.ai/api/datasets/{id}/rows/upsert \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"rows": [
{}
],
"document_id": "<string>"
}'
Path Parameters
id
string
requiredDataset ID
Header
Authorization
string
requiredBaseplate API key. Must be in the format βBearer $BASEPLATE_API_KEYβ
Body
rows
array
requiredRows 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.
curl --request POST \
--url https://app.baseplate.ai/api/datasets/{id}/rows/upsert \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"rows": [
{}
],
"document_id": "<string>"
}'