Skip to main content

system.kanoa.asset.updateAssetType

Requires kanoaOPS license

Description

Updates an asset type.

Syntax

updateAssetType(assetTypeInfo, userId)

Parameters:
  • assetTypeInfo (dict): Dictionary containing asset type information to be updated.
  • userId (int): User ID.

  • Returns:
  • 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)