Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > External Import → Import OAuth2 App

AI-generated

Summary

Import files from an external drive service into Infomaniak Kdrive.

Inputs

  • authentication — Authentication method to use for the request. Defaults to OAuth2 if not specified. API Key authentication is also available but may have different access requirements depending on the configured application scope.
  • path_drive_id (required) — Identifier of the Infomaniak Kdrive where the import operation targets. This is the top-level drive identifier in the Infomaniak ecosystem.
  • body_application (required) — Third-party service identifier specifying the source of the import. Supported values: dropbox (import from Dropbox), google (deprecated, import from Google Drive), google_drive (import from Google Drive), onedrive (import from Microsoft OneDrive).
  • body_directory_id (required) — Identifier of the destination directory within the target Infomaniak Kdrive where imported items will be placed.
  • bodyParameters — Optional collection of additional fields to customize the import behavior. Available sub-fields: body_access_token_id (ID of the authentication token for the application), body_application_drive_id (application-specific drive identifier), body_auth_code (authentication code for the application, if required by the source service), body_skip_shared_files (boolean; if true, skips shared files during import when the application supports it), body_source_path (path to a specific folder to import, overriding the default root directory).
  • returnFullResponse — When set to true, the execution output will include the full API response body rather than just the processed item list. Defaults to false.

Output shape

Returns a list of items representing the imported files/folders from the external service, mapped to Infomaniak Kdrive format. If returnFullResponse is enabled, the raw API response is included alongside the items.

The operation consumes the specified authentication method and application source, targets the given drive and directory, and performs an external import. Side effects include creating or updating entries in the target Infomaniak Kdrive based on the source data.

Examples

Example 1: Import files from Dropbox into a specific Infomaniak Kdrive directory using OAuth2.

authentication=OAuth2, path_drive_id=12345, body_application=dropbox, body_directory_id=67890

Links

Discussion