Skip to content

PutPlaylistSong

Walter Lara edited this page Mar 24, 2023 · 2 revisions

Put Playlist Song

Allows to add a Song to an existing Playlist.

Request

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"
}

✅ Success Response

Code: 204 NO CONTENT

Headers: None

❌ Error Responses

1. Bad Request

Code: 400 BAD REQUEST

Condition: If a mandatory content field is missing.

2. Unauthorized

Code: 401 UNAUTHORIZED

Condition: If {accessToken} is invalid or expired.

See Also

Post Playlist (Add New Playlist)

Patch Playlist (Update Playlist)

Get Playlist

Get Playlists

Get Playlist Count

Delete Playlist

Get Playlist Songs

Delete Playlist Song

Clone this wiki locally