Documents
Update a Single Row
PATCH
/
api
/
datasets
/
{id}
/
rows
/
{row-id}
Authorization
Header
Path
Body
curl --request PATCH \
--url https://app.baseplate.ai/api/datasets/{id}/rows/{row-id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"data": {},
"metadata": {}
}'
Path Parameters
id
string
requiredDataset ID
row-id
string
requiredRow ID
Header
Authorization
string
requiredBaseplate API key. Must be in the format βBearer $BASEPLATE_API_KEYβ
Content-Type
string
Use application/json
Body
data
object
requiredUpdated data. Each key in this object should match a column in your dataset. Format is same as above example for insertion. One of metadata or data is required.
metadata
object
requiredUpdated metadata. One of metadata or data is required.
Responses
π’ 200: OK
{
"id": 949495,
"dataset_id": "354ee3c7-891b-4635-9613-857debf92233",
"data": {
"text": "Example"
},
"metadata": {
"url": "/354ee3c7-891b-4635-9613-857debf92233/Example.pdf",
"rowId": 949495,
"documentId": "dad19711-b4b8-4e75-8944-2939bfeb06db"
},
"document_id": "dad19711-b4b8-4e75-8944-2939bfeb06db",
"image_paths": {
"img": "354ee3c7-891b-4635-9613-857debf92233/dad19711-b4b8-4e75-8944-2939bfeb06db/949495/img"
}
}
curl --request PATCH \
--url https://app.baseplate.ai/api/datasets/{id}/rows/{row-id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"data": {},
"metadata": {}
}'