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