Category Delete
This event is used to notify whenever a new category is deleted in the system, allowing users to organize and manage equipment more efficiently.
Event Type: CATEGORY_DELETE
Enablement Package: Equipment Tracking
Subscription to the Equipment Tracking Package is mandatory.
Trigger Condition
A webhook must be subscribed to the CATEGORY_DELETE event. This event is triggered in real-time when a category is deleted in the system for equipment.
Example Payload
{
"messageType": "CATEGORY_DELETE",
"generatedAt": 1735824999580,
"data": {
"id": 256,
"categoryId": "2zlnZZ0SRX6BVkK7Ifhgcw==",
"name": "Webhook-Cat",
"parentCategoryId": null,
"customerId": 2175,
"level": 0,
"equipmentCount": 0,
"recordStatus": 0,
"createdBy": "8a9388a8-8b37-6e82-018b-dce53cfc6c1f",
"createdAt": 1735824940000,
"updatedBy": "8a9388a8-8b37-6e82-018b-dce53cfc6c1f",
"updatedAt": 1735824998455,
"parentCategoryName": null
}
}
Reference
Field | Description |
---|---|
messageType | Type of message
Example: |
generatedAt | Time when event is generated in milliseconds
Example: |
data | JSON object containing data for the deleted category. |
categoryId | The unique Azuga ID of the Category. This is automatically generated when the category object is deleted and cannot be altered.
Example: |
customerId | The unique Azuga ID of the Customer
Example: |
name | Name of the Category deleted
Example: |
parentCategoryId | The unique Azuga ID of the Parent Category. This is automatically generated when the category object is deleted and cannot be altered.
Example: |
level | Category Level, 0 for base category and 1 to 5 for sub-category.
Example: |
equipmentCount | Count of equipments in the category
Example: |
recordStatus | Status of the Record
Example: |
createdAt | Time when category is deleted in YYYY-MM-DD and HH:MM:SS format
Example: |
updatedBy | The unique Azuga ID of the user who deleted the category
Example: |
updatedAt | Time when category is deleted in YYYY-MM-DD and HH:MM:SS format
Example: |
parentCategoryName | Name of the Parent category |
Updated 5 days ago