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

Updates an asset type. All assetTypeInfo keys are required.

---
### Parameters
**assetTypeInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - assetTypeId</td><td>Integer</td><td></td></tr>	
 	<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
**# of records** `Integer`<br />
**message** `String` None if success<br />

---
### Example
```python
assetTypeInfo = {
    'assetTypeId': 456,
    'assetTypeName': 'Region',
    'parentId': 1,
    'enabled': True,
    'mobile': True,
    'iconPath': 'material/insert_emoticon'
}
userId = 456
recordsModified = system.kanoa.asset.updateAssetType(assetTypeInfo, userId)
```
