system.kanoa.asset.updateAssetType
Description
Updates an asset type (kanoaOPS).Syntax
updateAssetType(assetTypeInfo, userId)- assetTypeInfo (dict) - Dictionary containing asset type information to be updated.
- userId (int) - User ID.
- records modified (int).
Code Examples
# Example Usage:
asset_type_info = {
'assetTypeName': 'UpdatedType',
'parentId': 123,
'enabled': True,
'iconPath': 'path/to/icon',
'assetTypeId': 456
}
user_id = 456
records_modified = system.kanoa.asset.updateAssetType(asset_type_info, user_id)