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


FieldTypeRequiredDescription
eventIdstring (uuid)Optionalunique identifier generated by the core module for the Kafka event
eventTimestring (date-time)Optionaltime at which the event was sent to Kafka
eventOrganizationIdstring (uuid)Optionalidentifier of the organization to which the data belongs
subscriptionsarrayRequiredlist of subscriptions receiving this event
subscriptions[].eventSubscriptionIdsarray (uuid)Requiredsubscription IDs for which the same event data applies
subscriptions[].eventsMetaarrayRequiredmetadata describing included events
subscriptions[].eventsDataarrayRequiredactual event payloads
eventNamestringRequiredname of the event (activity.deleted)
countintegerRequirednumber of occurrences of this event in eventsData
eventTypestringRequiredevent type identifier (activity.deleted)
eventVersionintegerRequiredversion of the event (v1)
eventDataobjectRequiredpayload describing the deleted activity
eventData.assetIdstring (uuid)Requiredunique identifier of the asset
eventData.driverIdstring (uuid)Optionalidentifier of the driver (if available)
eventData.activityIdstring (uuid)Requiredunique identifier of the deleted activity
eventData.modifiedOnstring (date-time)Requiredtimestamp when the activity was deleted
eventData.registeredOnstring (date-time)Requiredtimestamp when the activity was originally registered