Datasets
Cut snapshot
Record an immutable pointer at the current head. O(1) at any size. Training jobs pin it with dataset_id: "<id>@snap-N". Emits dataset.snapshot_created.
POST
/
v1
/
datasets
/
{dataset_id}
/
snapshots
Cut snapshot
curl --request POST \
--url https://api.veri.studio/v1/datasets/{dataset_id}/snapshots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"note": "<string>"
}
'import requests
url = "https://api.veri.studio/v1/datasets/{dataset_id}/snapshots"
payload = { "note": "<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({note: '<string>'})
};
fetch('https://api.veri.studio/v1/datasets/{dataset_id}/snapshots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"dataset_id": "<string>",
"seq": 123,
"name": "<string>",
"head_row": 123,
"auto": true,
"created_at": "2023-11-07T05:31:56Z",
"note": "<string>"
}Authorizations
API key with the vk_ prefix. Create one from the dashboard.
Path Parameters
Dataset ID or name
Body
application/json
Response
The new snapshot
"<dataset_id>@snap-": the id a job pins.
Short reference ("snap-") accepted wherever a snapshot is named.
Cut snapshot
curl --request POST \
--url https://api.veri.studio/v1/datasets/{dataset_id}/snapshots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"note": "<string>"
}
'import requests
url = "https://api.veri.studio/v1/datasets/{dataset_id}/snapshots"
payload = { "note": "<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({note: '<string>'})
};
fetch('https://api.veri.studio/v1/datasets/{dataset_id}/snapshots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"dataset_id": "<string>",
"seq": 123,
"name": "<string>",
"head_row": 123,
"auto": true,
"created_at": "2023-11-07T05:31:56Z",
"note": "<string>"
}
