# system.kanoa.performanceState.updatePerformanceStateClass(performanceStateClassInfo, userId)

updates an performance state class. All performanceStateClassInfo keys are required.

---
### Parameters
**performanceStateClassInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - parentId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - performanceStateClassDescription</td><td>String</td><td></td></tr>	
 	<tr><td> - performanceStateClassId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - performanceStateClassName</td><td>String</td><td></td></tr>	
	</tbody>
</table>

**userId** `Integer`:Id of the user executing the function<br />

---
### Returns
**# of records modified** `Integer`<br />
**msg** `String` None if success<br />

---
### Example
```python
userId = 18
performanceStateClassInfo = {
    'performanceStateClassId': 7, 
    'performanceStateClassName': 'Operations',
    'parentId': 5,
    'performanceStateClassDescription': 'MES Operations state class',
    'enabled': True
}
updatePerformanceStateClass(performanceStateClassInfo, userId)
> 
    4, None
>>>
```
