Retention Policy

A retention policy blocks permanent deletion of content for a specified amount of time. Admins can create retention policies and then later assign them to specific folders or their entire enterprise. To use this feature, you must have the manage retention policies scope enabled for your API key via your application management console.

Base
Mini
Standard

This resource has a few variations that can be encountered when using the API.

The fields that are part of the standard variant are generally returned when the resource is requested via its own API endpoints. For example, when retrieving a file by ID, it will return these fields unless the fields parameter has been specified.

A mini user object representing the user that created the retention policy

string
12345

The unique identifier that represent a file version.

string
file_version

Value is always "file_version"

permanently_delete

The disposition action of the retention policy. This action can be permanently_delete, which will cause the content retained by the policy to be permanently deleted, or remove_retention, which will lift the retention policy from the content, allowing it to be deleted by users, once the retention policy time period has passed.

Value is one of "permanently_delete", "remove_retention"

Some Policy Name

The name given to the retention policy

string / int32
0

The length of the retention policy. This length specifies the duration in days that the retention policy will be active for after being assigned to content. If the policy has A policy_type of indefinite, the retention_length will also be indefinite.

string / date-time
2012-12-12T10:53:43-08:00

When the retention policy object was created

string / date-time
2012-12-12T10:53:43-08:00

When the retention policy object was last modified

finite

The type of the retention policy. A retention policy type can either be finite, where a specific amount of time to retain the content is known upfront, or indefinite, where the amount of time to retain the content is still unknown.

Value is one of "finite", "indefinite"

string
active

The status of the retention policy. The status of a policy will be active, unless explicitly retired by an administrator, in which case the status will be retired. Once a policy has been retired, it cannot become active again.

Value is one of "active", "retired"

Full

Response Example

{
  "id": 12345,
  "type": "file_version",
  "policy_name": "Some Policy Name",
  "retention_length": 0,
  "disposition_action": "permanently_delete",
  "policy_type": "finite",
  "status": "active",
  "created_by": {
    "id": 11446498,
    "type": "user",
    "name": "Aaron Levie",
    "login": "ceo@example.com"
  },
  "created_at": "2012-12-12T10:53:43-08:00",
  "modified_at": "2012-12-12T10:53:43-08:00"
}