system.kanoa.attribute.addAttributeEvent
Description
Adds an attribute event record.Syntax
addAttributeEvent(attributeEventInfo, userId)Parameters:
Returns:
Dictionary
| Parameter | Type | Required | Notes |
|---|---|---|---|
| attributeAssetLinkId | int | e.g. 18 | |
| value | string | e.g. 'sausages' | |
| tStamp | datetime | e.g. somedate |
Code Examples
# Example usage
attributeEventInfo = {
'attributeAssetLinkId': 18,
'value': 'sausages',
'tStamp': somedate
}
userId = 123
attributeEventId = system.kanoa.attribute.addAttributeEvent(attributeEventInfo, userId)
print(attributeEventId) # Print the attribute event ID