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 > File/Directory → Copy To Directory
AI-generatedSummary
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.