Documentation of Rename file or folder API - https://api.webnet.mywire.org/drive/[:drive]/rename (POST)
| HTTP Parameters | Value |
|---|---|
| Method: | POST |
| URL: | https://api.webnet.mywire.org/drive/[:drive]/rename |
| Body: | JSON |
* drive: The drive name: “disk”, “media”, “photos”, App ID, Share ID, etc.
| Body Parameters | Type | Required | Description |
|---|---|---|---|
| session | string | YES | The user’s session |
| file | string | YES | Old file or folder name |
| file_new | string | YES | New file or folder name |
| directory | string | YES | The file or folder perent directory path |
| Parameters | Type | Description |
|---|---|---|
| process_id | string | Process ID for handling file or folder renaming |
Bad request: missing or invalid parameters.
File or folder not found, please check your input.
Unauthorized if the session is invalid or expired.
Forbidden if the user does not have permission to access the specified drive folder of file.
An unexpected server error occurred. Please try again later.