Drive > Files > File/Directory

Rename a file/directory

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

Request

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

Path parameters

drive_idinteger required

Drive identifier

file_idinteger required

File identifier

Request body

namestring required

Name of the File/Directory

Response

OK

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

Result of the HTTP request

Example response

{
  "result": "success",
  "data": {
    "cancel_id": "00000000-e89b-12d3-a456-000000000000"
  }
}

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

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status