Drive > Files > External import

Import OAuth2 app

Import files and folders from a third party app supporting OAuth2

post/2/drive/{drive_id}/imports/oauth

Path parameters

drive_idinteger required

Drive identifier

Request body

access_token_idinteger

ID of the authentication token for the application

application'dropbox' | 'onedrive' required

Supported service or third-party service identifier for external import.<note><strong>dropbox</strong>: Import from Dropbox.</note><note><strong>onedrive</strong>: Import from Microsoft OneDrive.</note>

application_drive_idstring

Application drive id selected

auth_codestring

Authentication code of the application

directory_idinteger required

Destination directory identifier

skip_shared_filesboolean

Skip shared files during the import, if the application supports it

source_pathstring

Path of the folder to import, if different from the root

Example request

{
  "application": "dropbox"
}

Response

OK

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

Result of the HTTP request

Example response

{
  "result": "success",
  "data": [
    {
      "application": "dropbox",
      "status": "canceled"
    }
  ]
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.