Skip to main content

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

Updates an asset type. All assetTypeInfo keys are required.


Parameters

assetTypeInfo Dictionary

- assetTypeIdInteger
- assetTypeNameString
- enabledBooleanNot required. Will be set to True if not provided
- iconPathStringNot required. Will be set to True if not provided
- mobileBooleanNot required. Will be set to False if not provided
- parentIdIntegerSet 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)