Get Started
Usage API
More information

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

Description

Updates the auto cleanup setting.

Parameters
Name Description Type Example
set
sent in body
Enables the auto cleanup or not Bool value true
gap
sent in body
A time interval when the auto cleanup will be performed (one week, two weeks, one month, two months, three months) OneWeek, TwoWeeks, OneMonth, TwoMonths, ThreeMonths
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 cleanup setting properties