Datasets
Tombstone a row
Append a tombstone: the row is absent from every snapshot cut from now on and still present in earlier ones. Nothing is deleted.
POST
/
v1
/
datasets
/
{dataset_id}
/
tombstones
Tombstone a row
curl --request POST \
--url https://api.veri.studio/v1/datasets/{dataset_id}/tombstones \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"row_id": 123,
"reason": "<string>"
}
'import requests
url = "https://api.veri.studio/v1/datasets/{dataset_id}/tombstones"
payload = {
"row_id": 123,
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({row_id: 123, reason: '<string>'})
};
fetch('https://api.veri.studio/v1/datasets/{dataset_id}/tombstones', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"dataset_id": "<string>",
"first_row": 123,
"last_row": 123,
"count": 123,
"format": "prompt",
"head_row": 123
}Authorizations
API key with the vk_ prefix. Create one from the dashboard.
Path Parameters
Dataset ID or name
Body
application/json
Response
The appended tombstone entry (one-row range)
row_id of the first entry in this batch.
row_id of the last entry in this batch (== the new stream head).
The locked row format of a stream. Detected from the first row and enforced on every later append (a mismatched row 400s the whole batch).
Available options:
prompt, preference, completion, chat, eval Tombstone a row
curl --request POST \
--url https://api.veri.studio/v1/datasets/{dataset_id}/tombstones \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"row_id": 123,
"reason": "<string>"
}
'import requests
url = "https://api.veri.studio/v1/datasets/{dataset_id}/tombstones"
payload = {
"row_id": 123,
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({row_id: 123, reason: '<string>'})
};
fetch('https://api.veri.studio/v1/datasets/{dataset_id}/tombstones', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"dataset_id": "<string>",
"first_row": 123,
"last_row": 123,
"count": 123,
"format": "prompt",
"head_row": 123
}
