Link Search Menu Expand Document

user.updateDislikedTracks

Update the disliked tracks associated with a given user.

Example URL

https://api.melodia.io/v1/user.updateDislikedTracks?userKey=a4b5G982H3r9Vf783EEd&addTrackKeys=MT234jk23f,MTgedsfgk1bV,MT154jF291&removeTrackKeys=MT1543F19k

Params

paramrequireddescriptiontype
userKeyYA unique ID to be associated with the new userString
addTrackKeysY / NTrack key(s) to be added as liked track(s). Track keys must be separated with a comma if more than one key is provided. This field is required unless removeTrackKeys is populated.String
removeTrackKeysY / NTrack key(s) to be removed as liked track(s). Track keys must be separated with a comma if more than one key is provided. This field is required unless addTrackKeys is populated.String

Auth

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

Sample Response

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

Discussion

Disliked tracks help Melodia better personalize the user’s smart station and music recommendations.

The user.updateDislikedTracks method updates the disliked tracks associated with the user. Note that any track can either be liked, disliked, or unrated by a given user. When a track is removed as a disliked track, it is automatically recognized as unrated by the user. Any track is considered unrated by default, unless it is liked or disliked by the user. On how to update the user’s liked tracks, refer to user.updateLikedTracks