Drive > Files > File/Directory > Access

Add multi-access

Changed on

Add multi-access to file

post/2/drive/{drive_id}/files/{file_id}/access

Request

  • Base URL
    https://api.infomaniak.com
  • URL
    https://api.infomaniak.com/2/drive/{drive_id}/files/{file_id}/access
  • Auth
    HTTP bearer

Path parameters

drive_idinteger required

Drive identifier

file_idinteger required

File identifier

Query parameters

withstring

Optional : Allows loading additional data about a resource, which may include related resources.

lang'de' | 'en' | 'es' | 'fr' | 'it' | 'nl' | 'pt' required

Override the language of the request, in most cases when an e-mail is triggered in the request.

Request body

emailsstring[]
messagestring nullable
right'manage' | 'none' | 'read' | 'write' required

Access level of {name}.<note><strong>manage</strong>: Can share, write and read the file.</note><note><strong>none</strong>: Can not act on the file.</note><note><strong>read</strong>: Can only read the file.</note><note><strong>write</strong>: Can write and read the file.</note>

team_idsinteger[]
user_idsinteger[]

Example request

{
  "right": "manage"
}

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

data91ac10ffFeedbackaccessresourceC3fdaa7f (unresolved $ref)

Changes

    • warning

      added the new can_not_modify_own_permission_error enum value to the // response property for the response status

    • warning

      added the new forbidden_error enum value to the // response property for the response status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • warning

      the request property's maxLength was set to 10000