Creates a retention policy.
The access token received from the authorization server in the OAuth 2.0 flow.
The name for the retention policy.
"Some Policy Name"
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.
finite, indefinite "finite"
The disposition action of the retention policy.
permanently_delete deletes the content
retained by the policy permanently.
remove_retention lifts retention policy
from the content, allowing it to be deleted
by users once the retention policy has expired.
permanently_delete, remove_retention "permanently_delete"
The additional text description of the retention policy.
"Policy to retain all reports for at least one month"
The length of the retention policy. This value
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.
"365"
Specifies the retention type:
modifiable: You can modify the retention policy. For example,
you can add or remove folders, shorten or lengthen
the policy duration, or delete the assignment.
Use this type if your retention policy
is not related to any regulatory purposes.
non_modifiable: You can modify the retention policy
only in a limited way: add a folder, lengthen the duration,
retire the policy, change the disposition action
or notification settings. You cannot perform other actions,
such as deleting the assignment or shortening the
policy duration. Use this type to ensure
compliance with regulatory retention policies.
modifiable, non_modifiable "modifiable"
Whether the owner of a file will be allowed to extend the retention.
true
Whether owner and co-owners of a file are notified when the policy nears expiration.
true
A list of users notified when the retention policy duration is about to end.
Returns a new retention policy object.
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, metadata templates, 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.
The unique identifier that represents a retention policy.
"12345"
The value will always be retention_policy.
retention_policy "retention_policy"
The name given to the retention policy.
"Some Policy Name"
The length of the retention policy. This value
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.
"365"
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 has expired.
permanently_delete, remove_retention "permanently_delete"
The additional text description of the retention policy.
"Policy to retain all reports for at least one month"
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.
finite, indefinite "finite"
Specifies the retention type:
modifiable: You can modify the retention policy. For example,
you can add or remove folders, shorten or lengthen
the policy duration, or delete the assignment.
Use this type if your retention policy
is not related to any regulatory purposes.
non-modifiable: You can modify the retention policy
only in a limited way: add a folder, lengthen the duration,
retire the policy, change the disposition action
or notification settings. You cannot perform other actions,
such as deleting the assignment or shortening the
policy duration. Use this type to ensure
compliance with regulatory retention policies.
modifiable, non_modifiable "non_modifiable"
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.
active, retired "active"
A mini user object representing the user that created the retention policy.
When the retention policy object was created.
"2012-12-12T10:53:43-08:00"
When the retention policy object was last modified.
"2012-12-12T10:53:43-08:00"
Determines if the owner of items under the policy can extend the retention when the original retention duration is about to end.
false
Determines if owners and co-owners of items under the policy are notified when the retention duration is about to end.
false
A list of users notified when the retention policy duration is about to end.
Counts the retention policy assignments for each item type.