system.kanoa.attribute.addAttributeAssetLink
Description
Adds a new attribute asset link.Syntax
addAttributeAssetLink(attrAssetInfo, userId)Parameters:
Returns:
Dictionary
| Parameter | Type | Required | Notes | 
|---|---|---|---|
| attributeId | int | e.g. 3 | |
| assetId | int | e.g. 5 | |
| sourceTagPath | string | e.g. 'some tag path' | |
| scaleFactor | float | e.g. 1.0 | |
| ignoreZeroValues | bool | e.g. True | |
| enabled | bool | e.g. True | 
Code Examples
# Example usage
attrAssetInfo = {
  'attributeId': 3,
  'assetId': 5,
  'sourceTagPath': 'some tag path',
  'scaleFactor': 1.0,
  'ignoreZeroValues': True,
  'enabled': True
}
userId = 123
attributeAssetLinkId, msg = system.kanoa.attribute.addAttributeAssetLink(attrAssetInfo, userId)
print(attributeAssetLinkId, msg)  # Print the attribute asset link ID and message