Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > File/Directory → Move

AI-generated

Summary

Move a file or directory within Infomaniak Kdrive.

Inputs

  • authentication — Authentication method to use for the API request. Choose between OAuth2 or API Key. Default is OAuth2.
  • path_drive_id (required) — Drive identifier where the file or directory is located.
  • path_file_id (required) — File identifier to move.
  • path_destination_directory_id (required) — Destination directory identifier where the file or directory will be moved to.
  • bodyParameters — Additional body fields to include in the API request. Contains optional fields for conflict handling and naming.
  • returnFullResponse — If true, the full API response is returned. Default is false.

Output shape

The node returns the moved file/directory metadata or an error if a conflict occurs.

When returnFullResponse is enabled, the complete API response is provided. Otherwise, a success indicator is returned.

Examples

Example 1: Move a file to a different directory

Set path_drive_id, path_file_id, and path_destination_directory_id to the appropriate numeric IDs. Optionally set body_conflict to 'rename' if a file with the same name exists in the destination.

Links

Discussion