Documents
Update All Rows for a Document
Update the content for an entire document. Warning: This will replace all rows with this document ID!
PATCH
/
api
/
datasets
/
{id}
/
documents
/
{document-id}
Authorization
Header
Path
Body
curl --request PATCH \
--url https://app.baseplate.ai/api/datasets/{id}/documents/{document-id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"rows": [
{}
]
}'
Path Parameters
id
string
requiredDataset ID
document-id
string
requiredDocument ID to add rows under
Header
Authorization
string
requiredBaseplate API key. Must be in the format βBearer $BASEPLATE_API_KEYβ
Content-Type
string
Use application/json
Body
rows
array
requiredArray of rows that will replace the document. See Overview for example.
curl --request PATCH \
--url https://app.baseplate.ai/api/datasets/{id}/documents/{document-id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"rows": [
{}
]
}'