Drive > Files > File/Directory

Copy source file in source drive to destination drive at destination folder.

post/2/drive/{drive_id}/files/{file_id}/copy-to-drive

Request

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

Path parameters

drive_idstring required
file_idstring required

Request body

notifyboolean

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

source_drive_idstring required

Source Drive Identifier

source_file_idinteger required

Source File Identifier

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_in_progress_in_directory_error enum value to the // response property for the response status

    • info

      added the new optional request property