Assign retention policy
Assigns a retention policy to an item.
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
- Authorization URL
- https://account.box.com/api/oauth2/authorize
- Token URL
- https://api.box.com/oauth2/token
Body
The ID of the retention policy to assign.
"173463"
The item to assign the policy to.
If the assign_to type is metadata_template, then optionally add the filter_fields parameter which will require an array of objects with a field entry and a value entry. Currently only one object of field and value is supported.
The date the retention policy assignment begins.
If the assigned_to type is metadata_template, this field can be a date field's metadata attribute key id.
"upload_date"
Response
Returns a new retention policy assignment object.
A retention assignment represents a rule specifying the files a retention policy retains. Assignments can retain files based on their folder or metadata, or hold all files in the enterprise.
The unique identifier for a retention policy assignment.
"11446498"
The value will always be retention_policy_assignment.
retention_policy_assignment "retention_policy_assignment"
A mini representation of a retention policy object that has been assigned to the content.
The type and id of the content that is under retention. The type can either be folder enterprise, or metadata_template.
An array of field objects. Values are only returned if the assigned_to type is metadata_template. Otherwise, the array is blank.
A mini user object representing the user that created the retention policy assignment.
When the retention policy assignment object was created.
"2012-12-12T10:53:43-08:00"
The date the retention policy assignment begins. If the assigned_to type is metadata_template, this field can be a date field's metadata attribute key id.
"upload_date"
