Goal : Try to fetch the retention policy on a file if there is one.
When creating the App I enabled manage_data_retention scope and I am sure that there are files under retention policies.
Even though File information in UI is giving retention policy information,
- GET
-
This APi is not returning any retention policy information
I tried to fetch all the files under retention policies and use query like file_id to narrow down the retention policy on file.
- GET
-
But the response I am getting is:
-
{ "entries": s], "limit": 100, "order": r { "by": "file_version_id", "direction": "ASC" } ] }
I tried to fetch file_versions under retention policy assignment but that is giving
API used :
{
"type": "error",
"status": 403,
"code": "access_denied_insufficient_permissions",
"help_url": "http://developers.box.com/docs/#errors",
"message": "Access denied - insufficient permission",
"request_id": "---"
}
IN the scopes documentation page - https://developer.box.com/guides/api-calls/permissions-and-errors/scopes/ I see that enterprise_content scope is needed for manage_data_retention scope to work perfectly.
If enterprise_content scope is needed, I saw that box support provides help in providing this scope.
So I want to ask box support to enable enterprise_content scope too if it’s needed.