DistributorUsersUser_idFoldersFolder_idRename
Rename folder
Renames a playlist folder and returns the updated library. Requires that the JWT subject matches user_id or that the token has admin privileges.
Authorization
BearerAuth Authorization<token>
Type "Bearer" followed by a space and JWT token.
In: header
Path Parameters
user_id*string
User ID (UUID)
folder_id*string
Folder ID (UUID)
Request Body
application/json
Rename payload
name*string
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://loading/api/users/string/folders/string/rename" \ -H "Content-Type: application/json" \ -d '{ "name": "New Folder Name" }'{
"folders": [
{
"id": "string",
"name": "string",
"parent_folder_id": "string"
}
],
"playlists": [
{
"id": "string",
"name": "string",
"parent_folder_id": "string"
}
]
}{
"error": "Validation failed"
}{
"error": "Validation failed"
}{
"error": "Validation failed"
}