Skip to main content

system.kanoa.event.updateStateEvent

Description

Updates a stateEvent record.

Syntax

updateStateEvent(stateInfo, userId)

Parameters:
  • stateInfo (dict)
  • userId: User ID.

  • Returns:
  • stateInfo (dictionary)
  • Dictionary

    ParameterTypeRequiredNotes
    assetStateIdint
    origAssetIdint
    stateCodeint
    origStateCodeint
    notestring
    stateEventIdint

    Code Examples

    # Example Usage:
    stateInfo = {'assetStateId': 1, 'origAssetId': 2, 'stateCode': 4, 'origStateCode':7, 'note': 'updated', 'stateEventId': 567}
    userId = 999
    stateInfo = system.kanoa.event.updateStateEvent(stateInfo, userId)