User-Item Interactions

Add Detail View

Adds a detail view of the given item made by the given user.

post/{databaseId}/detailviews/

Path parameters

databaseIdstring required

ID of your database.

Request body

userIdstring required

User who viewed the item

itemIdstring required

Viewed item

durationinteger

Duration of the view

cascadeCreateboolean

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

recommIdstring

If this detail view is based on a recommendation request, recommId is the id of the clicked recommendation.

additionalDataobject

A dictionary of additional data for the interaction.

autoPresentedboolean

Indicates whether the item was automatically presented to the user (e.g., in a swiping feed) or explicitly requested by the user (e.g., by clicking on a link). Defaults to false.

Response

Successful operation.

Changes