recombee_api_client.api_requests.add_bookmark module

class recombee_api_client.api_requests.add_bookmark.AddBookmark(user_id, item_id, timestamp=UUID('2c128268-42e0-44d9-9b48-f6ff4cfb95e3'), cascade_create=UUID('2c128268-42e0-44d9-9b48-f6ff4cfb95e3'), recomm_id=UUID('2c128268-42e0-44d9-9b48-f6ff4cfb95e3'), additional_data=UUID('2c128268-42e0-44d9-9b48-f6ff4cfb95e3'))

Bases: recombee_api_client.api_requests.request.Request

Adds a bookmark of a given item made by a given user.

Required parameters:

Parameters
  • user_id – User who bookmarked the item

  • item_id – Bookmarked item

Optional parameters:

Parameters
  • timestamp – UTC timestamp of the bookmark as ISO8601-1 pattern or UTC epoch time. The default value is the current time.

  • cascade_create – Sets whether the given user/item should be created if not present in the database.

  • recomm_id – If this bookmark is based on a recommendation request, recommId is the id of the clicked recommendation.

  • additional_data – A dictionary of additional data for the interaction.

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).