SendCardv1.0.0
Home bff sends a card to the student.
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 a requests is send to home bff
Rules: N/A
Static Values:
- event_type: send_card
- event_name: platzi.cards.1.send_card
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
card_type_id
stringCard type uuid
content_id
stringid of selected content
metadata
objectContain fixed properties with event information
event_type
stringType of the event, used to join common sub events
How to trigger this event
1curl --location --request POST 'https://api-c963080767f45828c31f83ca5cd25d36.staging.platzi.com/behavior/v1/' \
2--header 'Content-Type: application/json' \
3--data '{
4 "data": [
5 {
6 "event_id": "2457207d-a9d8-4b46-aff3-2a8ca385f2f6",
7 "event_name": "platzi.cards.1.send_card",
8 "event_occurred_on": "2023-05-01T22:29:56Z",
9 "attributes": {
10 "key": "2457207d-a9d8-4b46-aff3-2a8ca385f2f6",
11 "value": "1"
12 },
13 "metadata": {
14 "event_type": "send_card"
15 }
16 },
17 {
18 "event_id": "56780cb1-d41b-4a98-8718-182580243a34",
19 "event_name": "platzi.cards.1.send_card",
20 "event_occurred_on": "2023-05-01T22:29:56Z",
21 "attributes": {
22 "key": "2457207d-a9d8-4b46-aff3-2a8ca385f2f6",
23 "value": "9867"
24 },
25 "metadata": {
26 "event_type": "send_card"
27 }
28 }
29 ]
30}'Edit this pageLast updated on 2025/2/18