Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > File/Directory → Copy To Directory

AI-generated

Summary

Copy a file or directory to a destination directory in Infomaniak Kdrive.

Inputs

  • authentication — Authentication method to use. Select OAuth2 for token-based access or API Key for static key authentication. Defaults to OAuth2.
  • path_drive_id (required) — Identifier of the Infomaniak Drive where the source file or directory resides.
  • path_file_id (required) — Identifier of the file or directory to copy.
  • path_destination_directory_id (required) — Identifier of the destination directory where the item will be copied.
  • queryParameters — Optional additional query parameters. Use the 'query_with' parameter to request additional data about the resource, which may include related resources.
  • bodyParameters — Optional additional body fields. Use the 'body_name' parameter to specify a custom name for the copied file or directory.
  • returnFullResponse — When enabled, the full API response is returned. When disabled (default), a summary item representing the copied resource is returned.

Output shape

object

If returnFullResponse is true, the complete API response payload is emitted. Otherwise, n8n emits a single item containing the copied resource's metadata.

Examples

Example 1: Copy a file to a different directory

Set authentication, path_drive_id, path_file_id (source file), and path_destination_directory_id (target directory). Optionally set bodyParameters.body_name to rename the file.

Links

Discussion