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 | |
| - parentId | Integer | Can be None |
| - stateCategoryId | Integer | |
| - stateCategoryName | String |
userId Integer:Id of the user executing the function
Returns
# of records modified Boolean
msg String records modified or error message
Example
stateCategoryInfo={'stateCategoryId': 18, 'parentId': 4, 'stateCategoryName': 'Parts', 'enabled': True}
userId = 5
retVal, message = system.kanoa.asset.updateStateCategory(stateCategoryInfo, userId)