recombee_api_client.api_requests.delete_rating module¶
-
class
recombee_api_client.api_requests.delete_rating.
DeleteRating
(user_id: str, item_id: str, timestamp: Union[str, int] = UUID('51ae0263-b9b7-4be6-b3a8-e148aa176723'))¶ 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
() → dict¶ Values of body parameters as a dictionary (name of parameter: value of the parameter).
-
get_query_parameters
() → dict¶ Values of query parameters as a dictionary (name of parameter: value of the parameter).