# system.kanoa.lot.addLotStateReason(lotStateReasonInfo, userId)

Adds a lot state reason to a lot state

---
### Parameters
**lotStateReasonInfo** `Dictionary`: All keys are required unless otherwise stated<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - enabled</td><td>Boolean</td><td>Not required</td></tr>	
 	<tr><td> - lotStateId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - lotStateReasonColor</td><td>String</td><td>Not required</td></tr>	
 	<tr><td> - lotStateReasonName</td><td>String</td><td></td></tr>	
	</tbody>
</table>

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

---
### Returns
**lotStateReasonId** `Integer`<br />
**message** `String` None if success<br />

---
### Example
```python
>lotStateReasonInfo =  {'lotStateReasonName': 'Bad Coloring', 'lotStateId': 2, 'lotStateReasonColor': '#FF0000', 'enabled': True}
>lotStateReasonId, msg = system.kanoa.lot.addLotStateReason(lotStateReasonInfo, userId)
> print lotStateReasonId, msg
```
