system.kanoa.asset.addAssetAttribute
Description
Adds an attribute value for the asset (kanoaOPS).Syntax
addAssetAttribute(assetId, attrName, attrValue, userId)- assetId (int) - ID of the asset.
- attrName (str) - Name of the attribute to be added.
- attrValue (str) - Value of the attribute to be added.
- userId (int) - User ID.
- attributId (int) - ID of the added attribute.
- msg (str) - Status message ('Added' or 'Updated').
Code Examples
# Example Usage:
asset_id = 123
attr_name = 'Attribute1'
attr_value = 'Value1'
user_id = 456
attribute_id, message = system.kanoa.asset.addAssetAttribute(asset_id, attr_name, attr_value, user_id)