Role Deletion

The ROLE_DELETE event is used to notify when a role is deleted in the system. Once the role deletion occurs, the event data will be published to the subscribed webhook.

Event Type: ROLE_DELETE

Trigger Condition

Subscription to the ROLE_DELETE event is mandatory. This event is triggered in real-time when a role is deleted in the system.

Example Payload

{
  "eventInfo": {
    "actionBy": "060b46ff-1111-2222-a9c6-77fb7b8afa1b"
  },
  "messageType": "ROLE_DELETE",
  "entityName": "test role1",
  "customerId": 5134,
  "action": "Delete",
  "entityId": "baad8416-2123-2341-4523-4b21205e56fd",
  "time": 1742291321913
}

Reference

Field

Description

eventInfo
JSONObject

The unique Azuga ID of the user who performed the action Example: 060b46ff-28c5-11e7-a9c6-77fb7b8afa1b

messageType
String

Type of message
Example: "ROLE_DELETE"

entityName
String

Name of the role Example: test role1

customerId
Long

The unique Azuga ID of the Customer
Example:5134

action
String

Action Performed Example: Delete

entityId
String,UUID

The unique Azuga ID of the role. This is automatically generated when the role object is deleted and cannot be altered. Example: baad8416-03db-11f0-9f57-4b21205e56fd

time
Time Stamp

Time when event is created in milliseconds Example: 1742290271380