Datasets
Append rows
Append rows to the stream. Every row is validated against the locked format; one bad row rejects the whole batch (nothing is written). A correction is a new row with supersedes naming the row it replaces; it takes effect in snapshots cut from now on, and older snapshots keep the original. Emits one dataset.rows_appended webhook per batch.
POST
/
v1
/
datasets
/
{dataset_id}
/
rows
Append rows
curl --request POST \
--url https://api.veri.studio/v1/datasets/{dataset_id}/rows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
"<unknown>"
]'import requests
url = "https://api.veri.studio/v1/datasets/{dataset_id}/rows"
payload = ["<unknown>"]
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(['<unknown>'])
};
fetch('https://api.veri.studio/v1/datasets/{dataset_id}/rows', 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 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 Append rows
curl --request POST \
--url https://api.veri.studio/v1/datasets/{dataset_id}/rows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
"<unknown>"
]'import requests
url = "https://api.veri.studio/v1/datasets/{dataset_id}/rows"
payload = ["<unknown>"]
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(['<unknown>'])
};
fetch('https://api.veri.studio/v1/datasets/{dataset_id}/rows', 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
}
