Workspace settings
Set the workspace retention default
null clears the window (the default: kept until you delete them). 0 = zero-data-retention opt-in: every eligible (unprotected, unreferenced) version and snapshot in the workspace is purged by the next nightly sweep. Lineages with their own retention_days are unaffected.
PUT
/
v1
/
settings
/
retention
Set the workspace retention default
curl --request PUT \
--url https://api.veri.studio/v1/settings/retention \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model_retention_days": 123
}
'import requests
url = "https://api.veri.studio/v1/settings/retention"
payload = { "model_retention_days": 123 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({model_retention_days: 123})
};
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.
Body
application/json
0..=3650, or null to clear the window (versions and snapshots are kept until you delete them). 0 = purge eligible items on the next nightly sweep.
Response
The stored default
The workspace default retention window.
Set the workspace retention default
curl --request PUT \
--url https://api.veri.studio/v1/settings/retention \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model_retention_days": 123
}
'import requests
url = "https://api.veri.studio/v1/settings/retention"
payload = { "model_retention_days": 123 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({model_retention_days: 123})
};
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
}
