Link Search Menu Expand Document

user.updateLikedArtists

Update the liked artists associated with a given user.

Example URL

https://api.melodia.io/v1/user.updateLikedArtists?userKey=a4b5G982H3r9Vf783EEd&addArtistKeys=MA234jk23f,MAgedsfgk1bV,MA154jF291&removeArtistKeys=MA1543F19k

Params

paramrequireddescriptiontype
userKeyYA unique ID to be associated with the new userString
addArtistKeysY / NArtist key(s) to be added as liked artist(s). Artist keys must be separated with a comma if more than one key is provided. This field is required unless removeArtistKeys is populated.String
removeArtistKeysY / NArtist key(s) to be removed as liked artist(s). Artist keys must be separated with a comma if more than one key is provided. This field is required unless addArtistKeys is populated.String

Auth

This service requires authentication. Refer to Authentication for more details.

Sample Response

{
    'statusCode': 200,
    'body': {
       'message': "Success!"
    }
}

Discussion

Liked artists help Melodia better personalize the user’s smart station and music recommendations.

The user.updateLikedArtists method updates the liked artists associated with the user. Note that any artist can either be liked or unrated by a given user. When an artist is removed as a liked artist, it is automatically recognized as unrated by the user. Any artist is considered unrated by default, unless it is liked by the user.

Note that, as opposed to tracks, artists cannot be disliked by a user.