# system.kanoa.performanceState.updatePerformanceState(performanceStateInfo, userId)

Update the performance state reason. All performanceStateInfo keys are required.

---
### Parameters
**performanceStateInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - performanceStateClassId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - performanceStateId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - performanceStateName</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 successful<br />

---
### Example
```python
userId = 18
performanceStateInfo = {
    'performanceStateId': 2,
	'performanceStateName': 'Not enough personnel',
	'performanceStateClassId': 1,
	'performanceStateColor': '#FFFFCC',
	'enabled': True,
}
retVal, msg =system.kanoa.performanceState.updatePerformanceState(performanceStateInfo, userId)
print retVal, msg
>>>
    1, None
```
