Skip to main content

system.kanoa.asset.addAssetAttribute

Requires kanoaOPS license

Description

Adds an attribute value for the asset.

Syntax

addAssetAttribute(assetId, attrName, attrValue, userId)

Parameters:
  • 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.

  • Returns:
  • assetAttributId (int)
  • msg (str): Status message ('Added' or 'Updated').
  • Code Examples

    # Example Usage:
    assetId = 123
    attrName = 'Attribute1'
    attrValue = 'Value1'
    userId = 456
    assetAttributeId, message = system.kanoa.asset.addAssetAttribute(assetId, attrName, attrValue, userId)