# 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`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - parentId</td><td>Integer</td><td>Can be None</td></tr>	
 	<tr><td> - stateCategoryId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - stateCategoryName</td><td>String</td><td></td></tr>	
	</tbody>
</table>

**userId** `Integer`:Id of the user executing the function<br />

---
### Returns
**# of records modified** `Boolean`<br />
**msg** `String` records modified or error message<br />

---
### Example
```python
stateCategoryInfo={'stateCategoryId': 18, 'parentId': 4, 'stateCategoryName': 'Parts', 'enabled': True}
userId = 5
retVal, message = system.kanoa.asset.updateStateCategory(stateCategoryInfo, userId)
```
