PUT
/
api
/
analytics
/
events

Authorizations

Authorization
string
headerrequired

Headers

TR-Dataset
string
required

The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.

Body

application/json
event_name
string
required

The name of the event

event_type
enum<string>
required
Available options:
view
items
string[]
required

The items that were viewed

metadata
any | null

Any other metadata associated with the event

request_id
string | null

The request id of the event to associate it with a request

user_id
string | null

The user id of the user who viewed the items