Drive > Settings

Update trash settings

Update the trash settings, including the retention period of trashed files

put/2/drive/{drive_id}/settings/trash

Path parameters

drive_idinteger required

Drive identifier

Request body

max_durationinteger required

Number of days to keep file in trash. <note>The unit is in days, and the available values depend on your offer.</note> check <strong>pack.limit.trash.options</strong>: <a href="/docs/api/get/2/drive/%7Bdrive_id%7D">/drive/{drive_id}</a>

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

databoolean

Example response

{
  "result": "success"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.