Category Update
This event is used to notify whenever an existing category is updated in the system, ensuring that any modifications to category details are captured.
Event Name: CATEGORY_UPDATE
Enablement Package: Equipment Tracking
Subscription to the Equipment Tracking Package is mandatory.
Trigger Condition
A webhook must be subscribed to the CATEGORY_UPDATE event. This event is triggered in real-time when a category is updated in the system.
Example Payload
{
"messageType": "CATEGORY_UPDATE",
"generatedAt": 1737618783812,
"data": {
"categoryId": "85d66e36-a52d-4623-8c92-58d94f884101",
"name": "Testing-WebHook2",
"parentCategoryId": "9a1417f6-d3e0-4eac-a6ab-923c78c19436",
"customerId": 2175,
"level": 1,
"equipmentCount": 0,
"createdBy": "8a9388a8-82dd-604c-0182-e7d0373b0328",
"createdAt": "2024-12-12 12:11:57",
"updatedBy": "8a9388a8-8b37-6e82-018b-dce53cfc6c1f",
"updatedAt": "2025-01-23 07:53:02"
}
}
Reference
Field | Description |
---|---|
messageType String | Type of message Example: "CATEGORY_UPDATE" |
generatedAt Integer | Time when event is generated in ms Example: 1737709743221 |
data JSONObject | JSON object containing data for the updated category. |
categoryId String,UUID | The unique Azuga ID of the Category. This is automatically generated when the category object is updated and cannot be altered. Example: c85ad634-ebeb-4814-9a32-e756f7e6394b |
customerId Integer | The unique Azuga ID of the Customer Example: 15047 |
name String | Name of the Category updated Example: EQ-CAT-O |
parentCategoryId String, UUID | The unique Azuga ID of the Parent Category. This is automatically generated when the category object is updated and cannot be altered. Example: c85ad634-ebeb-4814-9a32-e756f7e6394b |
level Integer | Category Level, 0 for base category and 1 for sub-category. Example: 1 |
equipmentCount Integer | Count of equipments in the category Example: 0 |
createdAt Time Stamp | Time when category is updated in YYYY-MM-DD and HH:MM:SS format Example: 2025-01-24 09:08:59 |
updatedBy String,UUID | The unique Azuga ID of the user who updated the category Example: 8a9388a8-8b37-6e82-018b-dce53cfc6c1f |
updatedAt Time Stamp | Time when category is updated in YYYY-MM-DD and HH:MM:SS format Example: 2025-01-24 09:08:59 |
Updated 3 days ago