Drive > Files > File/Directory

Rename

Rename a file/directory

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

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

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