DistributorUsersUser_idFoldersFolder_idMove
Move folder to another folder
Moves a folder to a different parent 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
Move payload
parent_folder_id*string
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://loading/api/users/string/folders/string/move" \ -H "Content-Type: application/json" \ -d '{ "parent_folder_id": "00000000-0000-0000-0000-000000000000" }'{
"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"
}