Skip to main content

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

Updates an asset type. All assetTypeInfo keys are required.


Parameters

assetTypeInfo Dictionary

- assetTypeIdInteger
- assetTypeNameString
- enabledBoolean
- iconPathStringCan be None
- parentIdIntegerCan 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)