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