Workspace settings
Get the workspace retention default
Days unprotected model versions and unreferenced dataset snapshots are kept when a lineage sets no override. null (the default) = no window: they are kept until you delete them.
GET
/
v1
/
settings
/
retention
Get the workspace retention default
curl --request GET \
--url https://api.veri.studio/v1/settings/retention \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/settings/retention"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/settings/retention', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"model_retention_days": 123
}Authorizations
API key with the vk_ prefix. Create one from the dashboard.
Response
200 - application/json
The workspace default
The workspace default retention window.
Get the workspace retention default
curl --request GET \
--url https://api.veri.studio/v1/settings/retention \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/settings/retention"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/settings/retention', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"model_retention_days": 123
}
