DistributorPlaylists
Create playlist
Creates a playlist under the given folder for the given user. 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
Request Body
application/json
Playlist payload
id*string
name*string
parent_folder_id*string
song_ids?array<string>
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/api/playlists" \ -H "Content-Type: application/json" \ -d '{ "id": "00000000-0000-0000-0000-000000000000", "name": "My Playlist", "parent_folder_id": "00000000-0000-0000-0000-000000000000" }'{
"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"
}