Update Album
To edit 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 : PUT
URL : /api/album
Body : JSON
{
"id": 1,
"name": "Edited Album",
"cover_url": "https://i.scdn.co/image/ab67616d00001e02af69d9e82cc973f608481610",
"artist_id": 1
}
idRequired
string
Id of Album.
nameRequired
string
Name of Album.
cover_urlOptional
string
Album Cover Image URL.
artist_idRequired
number
Id of Artist.
Response : 200 - OK
{
"message": "Success update album"
}
Response : 422 - Unprocessable Content
{
"error": "Name required"
}
Response : 404 - Not Found
Not Found
Response : 500 - Server Error
Internal Server Error