PUT api/2.0/files/settings/autocleanup This function requires authentication

Description

Updates the trash bin auto-clearing setting.

Parameters
Name Description Type Example
Set
sent in body
Enables the auto-clearing or not Bool value true
Gap
sent in body
A time interval when the auto-clearing will be performed OneWeek, TwoWeeks, OneMonth, ThirtyDays, TwoMonths, ThreeMonths OneWeek
Example
PUT api/2.0/files/settings/autocleanup
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "Set": true,
  "Gap": "OneWeek"
}
Returns

The auto-clearing setting properties: auto-clearing or not, a time interval when the auto-clearing will be performed

Example Response
{
  "status": 0,
  "response": {
    "IsAutoCleanUp": true,
    "Gap": "OneWeek"
  }
}