# system.kanoa.asset.addAssetType(assetTypeInfo, userId)

Adds a new asset type. All assetTypeInfo keys are required unless otherwise stated

---
### Parameters
**assetTypeInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - assetTypeName</td><td>String</td><td></td></tr>	
 	<tr><td> - enabled</td><td>Boolean</td><td>Not required. Will be set to True if not provided</td></tr>	
 	<tr><td> - iconPath</td><td>String</td><td>Not required. Will be set to True if not provided</td></tr>	
 	<tr><td> - mobile</td><td>Boolean</td><td>Not required. Will be set to False if not provided</td></tr>	
 	<tr><td> - parentId</td><td>Integer</td><td>Set to None for root type</td></tr>	
	</tbody>
</table>

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

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

---
### Example
```python
assetTypeInfo = {
    'assetTypeName': 'Region',
    'parentId': 1,
    'enabled': True,
    'iconPath': None
}
userId = 5
assetTypeId, msg = system.kanoa.asset.addAssetType(assetTypeInfo, userId)
```
