recombee_api_client.api_requests.delete_rating module

class recombee_api_client.api_requests.delete_rating.DeleteRating(user_id, item_id, timestamp=UUID('457bc4c1-c64a-4a85-b4e0-be4761087d4d'))

Bases: recombee_api_client.api_requests.request.Request

Deletes an existing rating specified by (userId, itemId, timestamp) from the database or all the ratings with given userId and itemId if timestamp is omitted.

Required parameters:

Parameters
  • user_id – ID of the user who rated the item.

  • item_id – ID of the item which was rated.

Optional parameters:

Parameters

timestamp – Unix timestamp of the rating. If the timestamp is omitted, then all the ratings with given userId and itemId are deleted.

get_body_parameters()

Values of body parameters as a dictionary (name of parameter: value of the parameter).

get_query_parameters()

Values of query parameters as a dictionary (name of parameter: value of the parameter).