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

Update the lot state reason. Updates stateAssetLink table accordingly. All keys are required unless otherwise stated.

---
### Parameters
**lotStateReasonInfo** `Dictionary`<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> - lotStateReasonId</td><td>Integer</td><td></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
**# of records modified** `Integer`<br />
**message** `String` None if success<br />

---
### Example
```python
>lotStateReasonInfo = {'lotStateReasonId': 3,'lotStateId': 1, 'lotStateReasonName': 'Bad Color', 'enabled': False}
>userId = 5
>retVal, msg = system.kanoa.lot.updateLotStateReason(lotStateReasonInfo, userId)
>print retVal, msg
```
