Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > File/Directory → Create Default File

AI-generated

Summary

Create a default file in Infomaniak Kdrive.

Inputs

  • authentication — Authentication method for Infomaniak API access.
  • path_drive_id (required) — Drive identifier.
  • path_file_id (required) — File identifier.
  • queryParameters — Additional query parameters to load about a resource.
  • query_with — Optional : Allows loading additional data about a resource, which may include related resources.
  • body_name (required) — Name of the file to create.
  • body_type (required) — The extension of the file.
  • returnFullResponse — Return the full API response.

Output shape

Returns the result of the Infomaniak API call for file creation. When returnFullResponse is enabled, the full response body is returned; otherwise, n8n items are generated based on the API response.

The operation consumes the specified drive ID, file ID (if applicable), file name and type, and optional authentication and query parameters to create a default file in the selected Infomaniak Kdrive.

Examples

Example 1: Create a new text file in a specific drive.

Set authentication to OAuth2, select the target drive ID, provide a file name (e.g., 'report') and type ('txt'), and leave returnFullResponse at default false.

Links

Discussion