Create Album

Create Album

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/album

Body : JSON

{
  "name": "New Album",
  "cover_url": "https://i.scdn.co/image/ab67616d00001e02af69d9e82cc973f608481610",
  "artist_id": 1
}
nameRequired
string
Name of Album.
cover_urlOptional
string
Album Cover Image URL.
artist_idRequired
number
Id of Artist.

Response : 200 - OK

{
  "message": "Success add album"
}

Response : 422 - Unprocessable Content

{
  {
    "error": "Name required"
  },
  {
    "error": "Artist required"
  }
}

Response : 500 - Server Error

Internal Server Error