activity.deleted
This event is raised each time an existing activity is removed from the system. This typically happens when the activity becomes invalid and is replaced by another activity.
Payload JSON
{
"eventId": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"eventTime": "2025-05-12T22:21:00.000Z",
"eventOrganizationId": "7e2c1a8b-1f2b-4c3d-9e8a-2b7c1a8b1f2b",
"subscriptions": [
{
"eventSubscriptionIds": "a1c2e3f-4b5d-6e7f-8a9b-0c1d2e3f4a5b",
"eventsMeta": [
{
"eventName": "activity.deleted",
"count": 1
}
],
"eventsData": [
{
"eventType": "activity.deleted",
"eventVersion": 1,
"eventData": {
"assetId": "9c1d8b2f-3d1a-4e7a-2b3c-1a8b2f3d3c2b",
"driverId": "2b3c1a8b-2f3d-4e7a-9c1d-8b2f3d1a8b2f",
"activityId": "3c2b1a8b-2f3d-4e7a-9c1d-8b2f3d1a8b2f",
"registeredOn": "2025-05-12T22:20:00.000Z"
}
}
]
}
]
}Field level description
| Field | Type | Required | Description |
|---|---|---|---|
| eventId | string (uuid) | Optional | unique identifier generated by the core module for the Kafka event |
| eventTime | string (date-time) | Optional | time at which the event was sent to Kafka |
| eventOrganizationId | string (uuid) | Optional | identifier of the organization to which the data belongs |
| subscriptions | array | Required | list of subscriptions receiving this event |
| subscriptions[].eventSubscriptionIds | array (uuid) | Required | subscription IDs for which the same event data applies |
| subscriptions[].eventsMeta | array | Required | metadata describing included events |
| subscriptions[].eventsData | array | Required | actual event payloads |
| eventName | string | Required | name of the event (activity.deleted) |
| count | integer | Required | number of occurrences of this event in eventsData |
| eventType | string | Required | event type identifier (activity.deleted) |
| eventVersion | integer | Required | version of the event (v1) |
| eventData | object | Required | payload describing the deleted activity |
| eventData.assetId | string (uuid) | Required | unique identifier of the asset |
| eventData.driverId | string (uuid) | Optional | identifier of the driver (if available) |
| eventData.activityId | string (uuid) | Required | unique identifier of the deleted activity |
| eventData.modifiedOn | string (date-time) | Required | timestamp when the activity was deleted |
| eventData.registeredOn | string (date-time) | Required | timestamp when the activity was originally registered |