system.kanoa.asset.updateAssetType(assetTypeInfo, userId)
Updates an asset type. All assetTypeInfo keys are required.
Parameters
assetTypeInfo Dictionary
| - assetTypeId | Integer | |
| - assetTypeName | String | |
| - enabled | Boolean | |
| - iconPath | String | Can be None |
| - parentId | Integer | Can be None for root type |
userId Integer: Id of user executing the function
Returns
# of records Integer
Example
assetTypeInfo = {
'assetTypeId': 456,
'assetTypeName': 'Region',
'parentId': 1,
'enabled': True,
'iconPath': 'material/insert_emoticon'
}
userId = 456
recordsModified = system.kanoa.asset.updateAssetType(assetTypeInfo, userId)