Actions178
- Drive Actions
- Drive > Activity Actions
- Drive > Activity > Report Actions
- Drive > Files Actions
- Drive > Files > Action Actions
- Drive > Files > Archive Actions
- Drive > Files > Category Actions
- Drive > Files > Category > Right Actions
- Drive > Files > Dropbox Actions
- Drive > Files > External Import Actions
- Drive > Files > Favorite Actions
- Drive > Files > File/Directory Actions
- Drive > Files > File/Directory > Access Actions
- Drive > Files > File/Directory > Access > Invitation Actions
- Drive > Files > File/Directory > Access > Request Actions
- Drive > Files > File/Directory > Access > Teams Actions
- Drive > Files > File/Directory > Access > Users Actions
- Drive > Files > File/Directory > Comment Actions
- Drive > Files > File/Directory > Upload Actions
- Drive > Files > File/Directory > Upload > Session Actions
- Drive > Files > File/Directory > Version Actions
- Drive > Files > Search Actions
- Drive > Files > Share Link > Archive Actions
- Drive > Files > Share Link > Manage Actions
- Drive > Files > Trash Actions
- Drive > Invitations Actions
- Drive > Settings Actions
- Drive > Statistics Actions
- Drive > Users Actions
- Others Actions
- Users Actions
Drive > Files > Trash → Restore File
AI-generatedSummary
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.