Get file versions under retention

get
https://api.box.com/2.0
/retention_policy_assignments/:retention_policy_assignment_id/file_versions_under_retention/

Returns a list of file versions under retention for a retention policy assignment.

Request

Bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
1233123

The ID of the retention policy assignment.

Query Parameters

integer / int64in queryoptional
10001000

The maximum number of items to return per page.

stringin queryoptional
JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii

Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination.

This requires usemarker to be set to true.

Response

Returns a list of file versions under retention that are associated with the specified retention policy assignment.

application/jsonClient error

Returns an error if retention_policy_assignment_id is not specified.

application/jsonClient error

An unexpected client error.

get
Get file versions under retention
You can now try out some of our APIs live, right here in the documentation.
Log in

Response Example

{
  "entries": [
    {
      "id": 11446498,
      "type": "file_version_retention",
      "file_version": {
        "id": 12345,
        "type": "file_version",
        "sha1": "134b65991ed521fcfe4724b7d814ab8ded5185dc"
      },
      "file": {
        "id": 12345,
        "etag": 1,
        "type": "file",
        "sequence_id": 3,
        "name": "Contract.pdf",
        "sha1": "85136C79CBF9FE36BB9D05D0639C70C265C18D37",
        "file_version": {
          "id": 12345,
          "type": "file_version",
          "sha1": "134b65991ed521fcfe4724b7d814ab8ded5185dc"
        }
      },
      "applied_at": "2012-12-12T10:53:43-08:00",
      "disposition_at": "2012-12-12T10:53:43-08:00",
      "winning_retention_policy": {
        "id": 12345,
        "type": "retention_policy",
        "policy_name": "Some Policy Name",
        "retention_length": 365,
        "disposition_action": "permanently_delete"
      }
    }
  ],
  "limit": 1000,
  "next_marker": 3000,
  "prev_marker": 1000
}