Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Activity > Report → Create Report

AI-generated

Summary

Create an activity report for an Infomaniak KDrive.

Inputs

  • authentication — Authentication method for the Infomaniak API. Defaults to OAuth2; API Key is an alternative. OAuth2 is the default option selected when the node is configured without explicit authentication method set.
  • path_drive_id (required) — Identifier of the Infomaniak KDrive where the activity report will be generated. Must be a numeric drive ID; default value 0 is not valid for actual use and must be replaced with the correct drive identifier.
  • queryParameters — Optional additional query parameters to append to the API request. Primarily used to override the language of the request, which affects how responses are localized, particularly when an email is triggered downstream in the workflow.
  • bodyParameters — Optional body fields to include in the API request. Controls the scope and detail of the activity report through several sub-options: depth (children, file, folder, or unlimited), a list of specific files to include, time range (from/until, numeric timestamps), and filtering by user or list of users. The actions field accepts a JSON object for any additional report-specific actions.
  • returnFullResponse — Boolean flag that determines the output mode. When set to true, the full raw API response is returned as the node's output. When false (default), the node processes the response into standard n8n items for further use in the workflow.

Output shape

The Infomaniak KDrive activity report API response. If returnFullResponse is false, the node emits n8n items representing the report data; if true, the complete JSON response from the API is returned as the node's execution result.

All parameters are optional except path_drive_id. The query_lang option within queryParameters and the depth, files, from/until, user_id, and users options within bodyParameters allow fine-grained control over which activities are included and how the report is formatted. The node relies on the infomaniakApiRequest helper functions from the shared GenericFunctions module to make the actual API call.

Examples

Example 1: Generate a basic activity report for drive ID 12345 using OAuth2 authentication, reporting only file-level activities from the last 30 days.

authentication: OAuth2; path_drive_id: 12345; body_depth: file; body_from: 1704067200 (Unix timestamp for 2024-01-01); body_until: 1706659200 (Unix timestamp for 2024-02-01); body_files: {}

Links

Discussion