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

Adds a state category. All stateCategoryInfo keys are required.

---
### 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>Id of parent state category. Can be None</td></tr>	
 	<tr><td> - stateCategoryName</td><td>String</td><td>Name of state category</td></tr>	
	</tbody>
</table>

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

---
### Returns
**stateCategoryId** `Integer`<br />
**message** `String` None if success<br />

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