Class: AddBookmark

AddBookmark(userId, itemId, optional)

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

Constructor

new AddBookmark(userId, itemId, optional)

Construct the request
Parameters:
Name Type Description
userId string User who bookmarked the item
itemId string Bookmarked item
optional Object Optional parameters given as an object with structure name of the parameter: value - Allowed parameters: - *timestamp* - Type: string|number - Description: UTC timestamp of the bookmark as ISO8601-1 pattern or UTC epoch time. The default value is the current time. - *cascadeCreate* - Type: boolean - Description: Sets whether the given user/item should be created if not present in the database. - *recommId* - Type: string - Description: If this bookmark is based on a recommendation request, `recommId` is the id of the clicked recommendation.
Source:

Methods

bodyParameters() → {Object}

Get body parameters
Source:
Returns:
The values of body parameters (name of parameter: value of the parameter)
Type
Object

queryParameters() → {Object}

Get query parameters
Source:
Returns:
The values of query parameters (name of parameter: value of the parameter)
Type
Object