DownloadRecognitionv1.0.0
Download badge in top students section
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 users click on the "Download Recognition" button.
Rules: N/A
Static Values:
- event_type: download_recognition
- event_name: platzi.b2b.1.download_recognition
event_id
string<uuid>Id for the event. This is a client auto-generated UUID_V4
event_name
stringName of the event with format organization.domain.version.action
event_occurred_on
string<date-time>DateTime when the event was raises. Format YYYY-MM-DDTHH:MM:SSz
attributes
objectContains arbitrary properties with entity information
key
stringname of the event: download_recognition
value
stringtrue
metadata
objectContain fixed properties with event information
event_type
stringName of the event type
company_id
stringThe number of the company
team_id
stringThe number of the team
team_name
stringThe name of the team
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.b2b.1.platzi.b2b.1.download_recognition",
6 "event_occurred_on": "2023-05-01T22:29:56Z",
7 "attributes": {
8 "key": "download_recognition",
9 "value": "true",
10 },
11 "metadata": {
12 "event_type": "download_recognition",
13 "company_id": "37373",
14 "team_id": "37373",
15 "team_name": "Foo"
16 }
17}'
18Edit this pageLast updated on 2025/2/18