Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > Share Link > Manage → Create Share Link

AI-generated

Summary

Create a shared link for an Infomaniak Kdrive file.

Inputs

  • path_drive_id (required) — Drive identifier
  • path_file_id (required) — File identifier
  • body_right (required) — Permission of the shared link: no restriction (public), access by authenticated and authorized user (inherit) or public but protected by a password (password)
  • authentication — Authentication method; defaults to OAuth2 if unset

Output shape

returns a shared link URL; when returnFullResponse is true, the full API response body is returned instead.

Additional optional body parameters (bodyParameters collection) control link behavior: can_comment, can_download, can_edit, can_request_access, can_see_info, can_see_stats, body_password, and body_valid_until (expiry timestamp). queryParameters.query_with may request additional resource data.

Examples

Example 1: Public share link with expiry

path_drive_id=123, path_file_id=456, body_right=public, body_valid_until=1735689600, returnFullResponse=false

Links

Discussion