Skip to main content

system.kanoa.asset.addStateCategory(stateCategoryInfo, userId)

Adds a state category. All stateCategoryInfo keys are required.


Parameters

stateCategoryInfo Dictionary

- enabledBoolean
- parentIdIntegerId of parent state category. Can be None
- stateCategoryNameStringName of state category

userId Integer:Id of the user executing the function


Returns

stateCategoryId Integer
message String None if success


Example

stateCategoryInfo={'parentId': None, 'stateCategoryName': 'Maintenance', 'enabled': True}
userId = 5
stateCategoryId, msg = system.kanoa.asset.addStateCategory(stateCategoryInfo, userId)