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 Name: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

FieldDescription
messageType
String
Type of message
Example: "CATEGORY_CREATE"
customerId
Integer
The unique Azuga ID of the Customer
Example: 15047
generatedAt
Integer
Time when event is generated in ms
Example: 1737709743221
data
JSONObject
JSON object containing data for the created category.
categoryId
String,UUID
The unique Azuga ID of the Category. This is automatically generated when the category object is created and cannot be altered.
Example: c85ad634-ebeb-4814-9a32-e756f7e6394b
name
String
Name of the Category created
Example:EQ-CAT-O
parentCategoryId
String, UUID
The unique Azuga ID of the Parent Category. This is automatically generated when the category object is created and cannot be altered.
Example: c85ad634-ebeb-4814-9a32-e756f7e6394b
level
Integer
Category Level, 0 for base category and 1 to 5 for sub-category.
Example: 0
equipmentCount
Integer
Count of equipments in the category
Example:0
createdBy
String,UUID
The unique Azuga ID of the user who created the category
Example: 8a9388a8-8b37-6e82-018b-dce53cfc6c1f
createdAt
Time Stamp
Time when category is created 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 created the category
Example: 8a9388a8-8b37-6e82-018b-dce53cfc6c1f
updatedAt
Time Stamp
Time when category is created in YYYY-MM-DD and HH:MM:SS format
Example: 2025-01-24 09:08:59
subCategory
JSONObject
JSON object containing data for the sub-category created, which includes same data as above.