Category Create
This event is used to notify whenever a new category is created in the system for equipment, allowing users to organize and manage equipment more efficiently.
**Event Type:**CATEGORY_CREATE
Enablement Package: Equipment Tracking
Subscription to the Equipment Tracking Package is mandatory.
Trigger Condition
A webhook must be subscribed to the CATEGORY_CREATE event. This event is triggered in real time when a category is created in the system for equipment.
Example Payload
{
"messageType": "CATEGORY_CREATE",
"generatedAt": 1737709743221,
"data": {
"categoryId": "c85ad634-ebeb-4814-9a32-e756f7e6394b",
"name": "EQ-CAT-O",
"parentCategoryId": null,
"customerId": 2175,
"level": 0,
"equipmentCount": 0,
"createdBy": "8a9388a8-8b37-6e82-018b-dce53cfc6c1f",
"createdAt": "2025-01-24 09:08:59",
"updatedBy": "8a9388a8-8b37-6e82-018b-dce53cfc6c1f",
"updatedAt": "2025-01-24 09:08:59",
"subCategory": [
{
"categoryId": "911cca29-f55d-4440-a00b-b3b7a819203d",
"name": "EQ-CAT-1",
"parentCategoryId": "c85ad634-ebeb-4814-9a32-e756f7e6394b",
"customerId": 2175,
"level": 1,
"equipmentCount": 0,
"createdBy": "8a9388a8-8b37-6e82-018b-dce53cfc6c1f",
"createdAt": "2025-01-24 09:08:59",
"updatedBy": "8a9388a8-8b37-6e82-018b-dce53cfc6c1f",
"updatedAt": "2025-01-24 09:08:59"
}
]
}
}
Reference
Field | Description |
---|---|
messageType | Type of message
Example: |
customerId | The unique Azuga ID of the Customer
Example: |
generatedAt | Time when event is generated in milliseconds
Example: |
data | JSON object containing data for the created category. |
categoryId | The unique Azuga ID of the Category. This is automatically generated when the category object is created and cannot be altered.
Example: |
name | Name of the Category created
Example: |
parentCategoryId | The unique Azuga ID of the Parent Category. This is automatically generated when the category object is created 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: |
createdBy | The unique Azuga ID of the user who created the category
Example: |
createdAt | Time when category is created in YYYY-MM-DD and HH:MM:SS format
Example: |
updatedBy | The unique Azuga ID of the user who created the category
Example: |
updatedAt | Time when category is created in YYYY-MM-DD and HH:MM:SS format
Example: |
subCategory | JSON object containing data for the sub-category created, which includes same data as above. |
Updated 5 days ago