system.kanoa.performanceState.addPerformanceStateClass
Description
Adds a new performance state classSyntax
addPerformanceStateClass(performanceStateClassInfo, userId)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
performanceStateClassName | string | ||
parentId | int | ||
performanceStateClassDescription | string | ||
enabled | bool |
Code Examples
# Example Usage:
userId = 18
performanceStateClassInfo = {
'performanceStateClassName': 'Operations',
'parentId': 5,
'performanceStateClassDescription': 'MES Operations state class',
'enabled': True
}
addPerformanceStateClass(performanceStateClassInfo, userId)
>
4, None
>>>