Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > File/Directory → Thumbnail

AI-generated

Summary

Generate a thumbnail for a specified Infomaniak Kdrive file.

Inputs

  • authentication — Authentication method to use for API requests. Defaults to OAuth2 if not specified. Select OAuth2 or API Key based on your Infomaniak setup.
  • path_drive_id (required) — Identifier of the Infomaniak Kdrive (root folder ID). Use 0 for the root drive.
  • path_file_id (required) — Identifier of the specific file or directory to generate a thumbnail for.
  • queryParameters — Optional query parameters to customize the thumbnail. Supports height and width in pixels (default 0, meaning original size).
  • returnFullResponse — If true, the full API response is returned as a single item. If false (default), only the relevant thumbnail data is passed through.

Output shape

Depends on returnFullResponse setting. Typically returns a thumbnail URL or metadata object containing at minimum the file reference and thumbnail access information.

When returnFullResponse is false, the node extracts and emits the essential thumbnail details. When true, the complete API response payload is emitted.

Examples

Example 1: Basic thumbnail generation for a file in the root drive using OAuth2.

authentication=oauth2, path_drive_id=0, path_file_id=12345

Links

Discussion