Rename Media Folder
POST
/media/folders/rename
Rename a folder within the site-level media directory.
JSON
{
"from": "blog/old-name",
"to": "blog/new-name"
}
Response Codes
200
Folder renamed
401
Unauthorized
404
Source folder not found
422
Validation error or destination already exists
Rename a folder within the user/media directory. All contents of the folder are preserved. Both from and to are relative paths from the media root.