Move a file
To move a file into a different folder, use the move files API
| Method type | POST |
| API Location | https://wwwapi.shufflrr.com/api/files/move |
| Swagger documentation location | https://wwwapi.shufflrr.com/api/docs/ui/index#!/Files/Files_Move |
Sample Request Body
{
"fileIds": [
X
],
"targetFolderId": 0,
"overwriteExisting": true
}
Update the above Request body by:
- Replace X with the file ID (can also do a comma separated list of file IDs) you want to move to the new folder.
- Replace 0 with the folder ID you want to move the file(s) into.
- If you wish to overwrite a file (with the same name) in the destination folder then leave overwriteExisting set to true.
- If you change overwriteExisting to false and it encounters a file in the destination folder with the same name, it will not move the file and will return a response of “File already exists.”