Drive > Files > File/Directory > Access

Allow external applications

Changed on

Get access for an external application

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

Request

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

Path parameters

drive_idinteger required

Drive identifier

file_idinteger required

File identifier

Request body

mode'edit' | 'view'

Asked mode to open the external wopi documents.<note><strong>edit</strong>: Open with the edit mode.</note><note><strong>view</strong>: Open with the view mode.</note>

type'365' | 'collabora' required

List of applications.<note><strong>365</strong>: The 365 application.</note><note><strong>collabora</strong>: The collabora application.</note>

Example request

{
  "mode": "edit",
  "type": "365"
}

Response

OK

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

Result of the HTTP request

data91ac10ffFeedbackaccessresourceC3fdaa7f (unresolved $ref)

Changes

    • warning

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

    • info

      added the non-success response with the status