Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Settings → Update Trash Settings

AI-generated

Summary

Set trash retention duration for Infomaniak Kdrive

Inputs

  • path_drive_id (required) — Drive identifier
  • body_max_duration (required) — Number of days to keep file in trash. Available values depend on your offer.
  • authentication — Authentication method. Default: OAuth2. Options: OAuth2, API Key.
  • returnFullResponse — Return full API response. Default: false.

Output shape

Determined by API response. When returnFullResponse is false, output is a single item with the API response data.

The operation sends a request to update trash settings for the specified drive. The max_duration parameter accepts days; valid values are offer-dependent and should be confirmed via the pack's trash options endpoint.

Examples

Example 1: Update trash retention to 30 days for drive ID 123 using OAuth2

path_drive_id: 123, body_max_duration: 30, authentication: oauth2, returnFullResponse: false

Links

Discussion