Create Playlist User

Create 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/playlist

Body : JSON

{
  "user_id": 3,
  "name": "New Playlist"
}
user_idRequired
number
Id of User
nameRequired
string
Name of Playlist.

Response : 200 - OK

{ 
  "message": "Success add playlist"
}

Response : 422 - Unprocessable Content

{
  "error": "Name required"
}

Response : 500 - Server Error

Internal Server Error