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

Adds a new performance state. 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> - performanceStateColor</td><td>String</td><td></td></tr>	
 	<tr><td> - performanceStateName</td><td>String</td><td></td></tr>	
	</tbody>
</table>

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

---
### Returns
**performanceStateId** `Integer`<br />
**msg** `String` None if success<br />

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