Skip to main content
PUT
Set the workspace retention default

Authorizations

Authorization
string
header
required

API key with the vk_ prefix. Create one from the dashboard.

Body

application/json
model_retention_days
integer<int32> | null

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.

object
string
required

Always "workspace_retention".

model_retention_days
integer<int32> | null

Days unprotected model versions and unreferenced dataset snapshots are kept. null (the default) = no window: they are kept until you delete them. 0 = zero-data-retention opt-in.