system.kanoa.event.updateStateEvent
Description
Updates a stateEvent record.Syntax
updateStateEvent(stateInfo, userId)- stateInfo - Dictionary {'assetStateId': 1, 'origAssetId': 2, 'stateCode': 4, 'origStateCode':7, 'note': 'updated', 'stateEventId': 567}.
- userId - User ID.
stateInfo (dictionary).
Code Example
# Example Usage:
stateInfo = {'assetStateId': 1, 'origAssetId': 2, 'stateCode': 4, 'origStateCode':7, 'note': 'updated', 'stateEventId': 567}
userId = 999
stateInfo = system.kanoa.event.updateStateEvent(stateInfo, userId)