recombee_api_client.api_requests.delete_cart_addition module

class recombee_api_client.api_requests.delete_cart_addition.DeleteCartAddition(user_id: str, item_id: str, timestamp: Union[str, int] = UUID('61c9499e-06bc-48ae-8387-f85ab08ff0cb'))

Bases: recombee_api_client.api_requests.request.Request

Deletes an existing cart addition uniquely specified by userId, itemId, and timestamp or all the cart additions with given userId and itemId if timestamp is omitted.

Required parameters:

Parameters
  • user_id – ID of the user who made the cart addition.

  • item_id – ID of the item of which was added to cart.

Optional parameters:

Parameters

timestamp – Unix timestamp of the cart addition. If the timestamp is omitted, then all the cart additions 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).