# system.kanoa.lot.updateLotState(lotStateInfo, userId)

Update the state info for a given stateId. All lotStateInfo keys are required unless otherwise stated.

---
### Parameters
**lotStateInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - enabled</td><td>Boolean</td><td>Not required</td></tr>	
 	<tr><td> - lotStateColor</td><td>String</td><td>i.e '#FF0000 or '  kcRed 60'. Not required</td></tr>	
 	<tr><td> - lotStateId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - lotStateName</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
>lotStateInfo = {'lotStateId': 1, 'lotStateName': 'QA Hold', 'enabled': False, 'lotStateColor': '#FF0000'}
>userId = 5
>retVal, msg = system.kanoa.lot.updateLotState(lotStateInfo, userId)
>print retVal, msg
```
