Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > File/Directory → Duplicate

AI-generated

Summary

Duplicate a file or directory in Infomaniak Kdrive.

Inputs

  • authentication — Authentication method to use for the API request.
  • path_drive_id (required) — Drive identifier where the file or directory resides.
  • path_file_id (required) — File identifier of the resource to duplicate.
  • queryParameters — Optional additional query parameters; use 'query_with' to load extra resource data.
  • bodyParameters — Optional body field 'body_name' to set a custom name for the duplicated file or directory.
  • returnFullResponse — If true, returns the full API response instead of the standard n8n item.

Output shape

A single n8n item representing the duplicated file or directory entry; if returnFullResponse is enabled, the raw API response object is returned instead.

The operation consumes the specified drive and file identifiers and performs a copy action within the Kdrive storage.

Examples

Example 1: Duplicate a file with a new name

Set path_drive_id to the target drive number, path_file_id to the source file number, body_parameters > body_name to the desired new name, and returnFullResponse to false (default).

Links

Discussion