system.kanoa.asset.updateState
Description
Update the state info for a given stateId. Update stateAssetLink table accordingly (kanoaOPS).Syntax
updateState(stateInfo, userId)- stateInfo (dict) - Dictionary containing updated state information.
- userId (int) - User ID.
- 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)