close
The Wayback Machine - https://web.archive.org/web/20140813155121/https://developer.beatsmusic.com/docs/read/users/Ratings_Delete

Ratings Delete

Delete a rating for a user.

The id is the ID of the item being rated. Allowed item types are:

  • albums
  • tracks
  • playlists

Endpoint URL

/api/users/:user_id/ratings/:id


HTTP Method

DELETE


Authentication

OAuth 2.0: Access token required. See Authentication for examples and details.


Parameters

Name Required Description Example
user_id required Unique ID for User. 1234567890
id required Unique id of the given type tr1234567

Response Elements

ResponseDescription
code

Beats API response code. If successful, code is 'OK'. Otherwise it will be an error code.


Example Request

curl -X DELETE "https://partner.api.beatsmusic.com/api/users/1234567890/ratings/tr1234567?
    access_token=[ACCESS_TOKEN]"

Example Response

{
  "code": "OK"
}

Errors

ResourceNotFound [404]

Rating id not found
The item id to be rated could not be found.

Docs Navigation