Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > Trash → Restore File

AI-generated

Summary

Restores a file from the Infomaniak Kdrive trash to a specified destination directory.

Inputs

  • authentication — Authentication method to use for the Infomaniak API. Defaults to OAuth2; API Key can be selected if configured.
  • path_drive_id (required) — The drive identifier where the file resides.
  • path_file_id (required) — The identifier of the file to restore from the trash.
  • body_destination_directory_id — The identifier of the destination directory to restore the file to.
  • returnFullResponse — If true, returns the full API response instead of just the processed item.

Output shape

Returns the restored file item or the full API response depending on the returnFullResponse setting.

The operation consumes the file ID and drive ID from the Trash resource and moves the file to the specified destination directory via the Infomaniak Kdrive API.

Links

Discussion