Skip to main content

system.kanoa.asset.updateState

Requires kanoaOPS license

Description

Update the state info for a given stateId. Update stateAssetLink table accordingly.

Syntax

updateState(stateInfo, userId)

Parameters:
  • stateInfo (dict): Dictionary containing updated state information.
  • userId (int): User ID.

  • Returns:
  • pyDataset
  • Code Examples

    # Example Usage:
    state_info = {
    'stateId': 123,
    'stateName': 'UpdatedState',
    'stateCategoryId': 2,
    'stateTypeId': 2,
    'assetGroupId': 2,
    'enabled': False
    }
    user_id = 456
    records_modified = system.kanoa.asset.updateState(state_info, user_id)