PUT
/
api
/
analytics
/
events
curl --request PUT \
  --url https://api.trieve.ai/api/analytics/events \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TR-Dataset: <tr-dataset>' \
  --data '{
  "event_name": "<string>",
  "event_type": "view",
  "items": [
    "<string>"
  ],
  "location": "<string>",
  "metadata": "<any>",
  "request": {
    "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "request_type": "search"
  },
  "user_id": "<string>"
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

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
JSON request payload to send event data

The body is of type object.

Response

204

The event data was successfully sent