Drive > Files > External import

Import the content of a kDrive

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

Request

  • Base URL
    https://api.infomaniak.com
  • URL
    https://api.infomaniak.com/2/drive/{drive_id}/imports/kdrive
  • Auth
    HTTP bearer

Path parameters

drive_idinteger required

Drive identifier

Request body

application_drive_idstring required

Id of the kDrive containing the content to import

directory_idinteger required

Destination directory identifier

notifyboolean

Whether the user should be notified by email, true by default.

source_pathstring

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

Response

OK

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

Result of the HTTP request

Example response

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

Changes

    • warning

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

    • info

      added the new optional request property