Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > Archive → Build Archive

AI-generated

Summary

Build an archive from selected files in an Infomaniak Kdrive directory.

Inputs

  • authentication (required) — Authentication method for the Infomaniak API. Supports OAuth2 or API Key authentication. Default: OAuth2.
  • path_drive_id (required) — Drive identifier. Must be provided as a numeric ID.
  • bodyParameters — Collection of additional body fields to control which files are included in or excluded from the archive build request. Placeholder: Add Field. Default: {}. At least one of body_file_ids or body_parent_id must be supplied depending on the other's value.
  • returnFullResponse — If true, the raw API response is returned instead of processed n8n items. Default: false.

Output shape

When returnFullResponse is false, the operation returns processed n8n items representing the archived files. When true, the full Infomaniak API response payload is emitted.

The bodyParameters collection supports three optional sub-fields: body_file_ids (json, array of file IDs to include; required if body_parent_id is not set), body_parent_id (number, directory ID containing the files; required if body_file_ids is not set), and body_except_file_ids (json, array of file IDs to exclude; only applied when body_parent_id is set and meaningless otherwise).

Examples

Example 1: Archive specific files by ID from a drive.

Set path_drive_id to the target drive's numeric ID, body_file_ids to an array of file IDs to include, and leave body_parent_id at its default (0). Authentication defaults to OAuth2.

Example 2: Archive all files in a specific directory.

Set path_drive_id, body_parent_id to the target directory's numeric ID, and leave body_file_ids empty. Authentication defaults to OAuth2.

Links

Discussion