-
Notifications
You must be signed in to change notification settings - Fork 4
PutPlaylistSong
Walter Lara edited this page Mar 24, 2023
·
2 revisions
Allows to add a Song to an existing Playlist.
URL: /v1/playlists/{playlistId}/songs
Method: PUT
Path Parameters:
Parameter | Type | Description |
---|---|---|
playlistId | string | UUID of the Playlist to add the Song to. |
Query Parameters: None
Headers:
Authorization: Bearer {accessToken}
Content-Type: application/json
Content:
Field | Type | Description | Requirement Type |
---|---|---|---|
songId | string | UUID of the Song to add. | Required |
Content example:
{
"songId": "7bd2862f-8deb-4814-8943-156d9dab80dd"
}
Code: 204 NO CONTENT
Headers: None
Code: 400 BAD REQUEST
Condition: If a mandatory content field is missing.
Code: 401 UNAUTHORIZED
Condition: If {accessToken}
is invalid or expired.
Post Playlist (Add New Playlist)