Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > File/Directory > Version → List

AI-generated

Summary

List versions of a specified file or directory in Infomaniak Kdrive

Inputs

  • authentication (required) — Authentication method to use for Infomaniak API requests. Supports OAuth2 or API Key; defaults to OAuth2.
  • path_drive_id (required) — Identifier of the drive containing the file or directory. Must be provided as a number.
  • path_file_id (required) — Identifier of the file or directory to list versions for. Must be provided as a number.
  • query_order_by — Optional parameter defining the field used for sorting; part of the sort capacity.
  • query_order — Optional parameter defining the default sort order; accepts 'asc' or 'desc'; part of the sort capacity.
  • query_order_for — Optional parameter defining the sorting order for a field; defaults to the 'order' parameter; part of the sort capacity.
  • returnFullResponse — If true, the full API response is returned; otherwise, parsed version items are returned. Defaults to false.

Output shape

When returnFullResponse is false, returns an array of version records for the specified file or directory. When true, returns the complete API response object as received from Infomaniak.

The operation paginates through results using the infomaniakApiRequestAllPages helper; all returned items adhere to the Infomaniak Kdrive version metadata structure.

Links

Discussion