Rating
v1.0.0

The admin rate a lp generated by lp maker.

Details

This event must be consumed using an authorization token. The token is utilized to verify that the user has permission to produce the event and set user_id and organization_id within the attributes. Additionally, the event_source and metadata.event_triggered_by are automatically populated by the CF-Worker-User-Event.

Triggered: when the admin presses rate button from a lp generated by lp maker.
Rules:N/A
Static Values:
  • event_type: lp_maker_rate
  • event_name: platzi.lpmaker.1.rate
  • attributes.value: rate
event_id
string<uuid>
required

Id for the event. This is a client auto-generated UUID_V4

event_name
string
required

Name of the event with format organization.domain.version.action

event_occurred_on
string<date-time>
required

DateTime when the event was raises. Format YYYY-MM-DDTHH:MM:SSz

attributes
object
required

Contains arbitrary properties with entity information

job_id
string
required

job id returned by the lp maker

group_id
number
required

group id

reason
string
required

reason why the admin dislike the lp

user_id
number
required

user id

key
string
required

Rating type indicator: '0' for dislike or '1' for like

Allowed values:
01
value
string
required

value of company id

metadata
object

Contain fixed properties with event information

event_type
string
required

Type of the event, used to join common sub events

How to trigger this event

1curl --location 'https://api-c963080767f45828c31f83ca5cd25d36.staging.platzi.com/behavior/v1/' \
2--header 'Content-Type: application/json' \
3--data '{
4  "event_id": "2457207d-a9d8-4b46-aff3-2a8ca385f2f6",
5  "event_name": "platzi.lpmaker.1.rate",
6  "event_occurred_on": "2023-05-01T22:29:56Z",
7  "attributes": {
8    "job_id": "123",
9    "group_id": 123,
10    "reason": "The lp is not good",
11    "user_id": 123,
12    "key": "0 | 1",
13    "value": "799"
14  },
15  "metadata": {
16    "event_type": "lp_maker_rate"
17  }
18}'
19
Edit this pageLast updated on 2025/2/18