Events
Action |
Event name |
create a new segment information |
segmentsinformation.created |
update an existing segment information |
segmentsinformation.updated |
delete an existing segment information |
segmentsinformation.deleted |
Create payload example
{
"attemptId": "aefbeb59-4fb1-47f9-b218-72bd657a72de",
"created": 1689112634,
"data": {
"_id": "64add0369c37010453c0ac61",
"accountId": "52a377ec430c7d4e220001fc",
"biDirectional": false,
"createdAt": {
"offset": 0,
"value": "2023-07-11T21:57:10.818Z"
},
"createdBy": "55fc2f318791db6e1a0000b6",
"destination": "Cordoba",
"destinationId": "64a5b3a6f7e9f9052a32b679",
"distance": 230,
"duration": 12,
"origin": "Cheat Bridge",
"originId": "57a4d221be7c885047adad6c",
"updatedAt": {
"offset": 0,
"value": "2023-07-11T21:57:10.819Z"
},
"updatedBy": "55fc2f318791db6e1a0000b6"
},
"event": "segmentsinformation.created",
"id": "f17b6196-ca3e-4302-bfce-ffda71565329",
"livemode": true
}
Upload payload example
{
"attemptId": "09aa530e-828c-466c-a9df-8388b3977fe9",
"created": 1689112457,
"data": {
"_id": "64adc378a4ae3e0429934016",
"accountId": "52a377ec430c7d4e220001fc",
"biDirectional": true,
"createdAt": {
"offset": 0,
"value": "2023-07-11T21:02:48.586Z"
},
"createdBy": "55fc2f318791db6e1a0000b6",
"destination": "Cordoba",
"destinationId": "64a5b3a6f7e9f9052a32b679",
"distance": 134,
"duration": 34,
"origin": "Elkins",
"originId": "57a4d216a0d3854b47628235",
"updatedAt": {
"offset": 0,
"value": "2023-07-11T21:54:15.527Z"
},
"updatedBy": "55fc2f318791db6e1a0000b6"
},
"event": "segmentsinformation.updated",
"id": "ed718a26-f7e4-44b2-a831-ef571fd9a76d",
"livemode": true
}
Delete payload example
{
"attemptId": "998e9386-c0fe-4eb4-bed5-777f69edcc05",
"created": 1689112463,
"data": {
"segmentInformationId": "64adc378a4ae3e0429934016"
},
"event": "segmentsinformation.deleted",
"id": "151179e7-7919-402f-8a64-6ba284f702c9",
"livemode": true
}