Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > File/Directory > Access > Invitation → Add Access

AI-generated

Summary

Adds access to a file or directory in Infomaniak Kdrive for specified email addresses with specified access level.

Inputs

  • authentication — Authentication method to use for the API request.
  • path_drive_id (required) — Identifier of the drive containing the file or directory.
  • path_file_id (required) — Identifier of the file or directory to grant access to.
  • queryParameters — Additional query parameters to include in the API request.
  • body_emails (required) — Email addresses to grant access to.
  • body_right (required) — Access level for the provided emails. Options: manage, none, read, write.
  • bodyParameters — Additional body fields to include in the API request.
  • returnFullResponse — If true, the full API response will be returned instead of just the items.

Output shape

object

The API response typically includes a success status and may include the updated access list depending on the returnFullResponse setting.

Examples

Example 1: Grant read access to a file

path_drive_id: 1, path_file_id: 42, body_emails: [user@example.com], body_right: read, returnFullResponse: false

Links

Discussion