DistributorPlaylistsId
Update playlist (Global)
Renames a playlist. Requires admin JWT or ownership.
Authorization
BearerAuth Authorization<token>
Type "Bearer" followed by a space and JWT token.
In: header
Path Parameters
id*string
Playlist ID (UUID)
Request Body
application/json
Rename payload
name*string
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://loading/api/playlists/string" \ -H "Content-Type: application/json" \ -d '{ "name": "New Name" }'{
"created_at": "string",
"folder_id": "string",
"id": "string",
"name": "string",
"song_ids": [
"string"
],
"user": {
"id": "string",
"is_admin": true,
"root_folder_id": "string",
"username": "string"
},
"user_id": "string"
}{
"error": "Validation failed"
}{
"error": "Validation failed"
}{
"error": "Validation failed"
}{
"error": "Validation failed"
}