system.kanoa.asset.updateStateCategory(stateCategoryInfo, userId)
Updates a stateCategory. All stateCategoryInfo keys are required. SQL Constraints will prevent duplicate state Categories from being created
Parameters
stateCategoryInfo Dictionary
| - enabled | Boolean | |
| - stateCategoryId | Integer | |
| - stateCategoryName | String |
userId Integer: Id of user executing the function
Returns
# of records modified Boolean
msg String records modified or error message
Example
stateCategoryInfo={'stateCategoryId': 18, 'stateCategoryName': 'sausages', 'enabled': True}
userId = 5
successFlag, message = system.kanoa.asset.updateStateCategory(stateCategoryInfo, userId)