Moves a file or folder.
Try it now
Test
RAM authorization
Request syntax
POST /v2/file/move HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
||
| drive_id |
string |
Yes |
|
1 |
| file_id |
string |
Yes |
|
9520943DC264 |
| to_parent_file_id |
string |
Yes |
|
6520943DC261 |
| check_name_mode |
string |
No |
|
ignore |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| domain_id |
string |
The domain ID. |
bj1 |
| drive_id |
string |
The drive ID. |
1 |
| file_id |
string |
The file ID. |
fileid1 |
| async_task_id |
string |
The ID of the asynchronous task. If an empty string is returned, the move completed successfully. If a non-empty string is returned, the move is processed asynchronously. Call GetAsyncTask and pass the asynchronous task ID to get information about the task. |
23ebd1a24dba4166b1527add476ef2866051b4d5del106 |
| exist |
boolean |
Indicates whether the file already exists. |
false |
| revision_id |
string |
||
| file_name |
string |
||
| updated_at |
string |
Examples
Success response
JSON format
{
"domain_id": "bj1",
"drive_id": "1",
"file_id": "fileid1",
"async_task_id": "23ebd1a24dba4166b1527add476ef2866051b4d5del106",
"exist": false,
"revision_id": "",
"file_name": "",
"updated_at": ""
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.