Documents
Upsert Data Rows
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
Bearer*
curl --request POST \
--url https://app.baseplate.ai/api/datasets/{id}/rows/upsert \
--header 'Authorization: <authorization>' \
--data '{
"rows": []
}'
βPath Parameters
idrequired
string
Dataset ID
βHeader
Authorizationrequired
string
Baseplate API key. Must be in the format βBearer $BASEPLATE_API_KEYβ
βBody
rowsrequired
array
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.
curl --request POST \
--url https://app.baseplate.ai/api/datasets/{id}/rows/upsert \
--header 'Authorization: <authorization>' \
--data '{
"rows": []
}'