Add Playlist User Song

Add Song to Playlist of User

To create the data in the specified collection with the specified parameters. When a JSON object is saved, the object properties are automatically added to the collection you specified.

Method : POST

URL : /api/my-playlist/detail

Body : JSON

{
  "id_song": 92,
  "id_playlist": 7
}
id_songRequired
number
Id of Song.
id_playlistRequired
number
Id of Playlist.

Response : 200 - OK

{
  "message": "Success add song to playlist"
}

Response : 422 - Unprocessable Content

{
  "error": "Song required"
}

Response : 500 - Server Error

Internal Server Error