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