# system.kanoa.lot.updateLotOperation(lotOperationInfo, userId)

Updates a lot operation

---
### Parameters
**lotOperationInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - allowInputLots</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - allowOutputLots</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - lotOperationColor</td><td>String</td><td></td></tr>	
 	<tr><td> - lotOperationId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - lotOperationName</td><td>String</td><td></td></tr>	
	</tbody>
</table>

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

---
### Returns
**# of records modified** `Integer`<br />
**message** `String` None if success<br />

---
### Example
```python
lotOperationInfo = {
                        'lotOperationId': 1, 
                        'lotOperationName': 'Scrap', 
                        'lotOperationColor': '#0000FF', 
                        'allowInputLots': True, 
                        'allowOutputLots': False, 
                        'enabled': True}
userId = 5
retVal, msg = system.kanoa.lot.updateLotOperation(lotOperationInfo, userId)
```
