system.kanoa.asset.updateState
Description
Update the state info for a given stateId. Update stateAssetLink table accordingly.Syntax
updateState(stateInfo, userId)Parameters:
Returns:
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)