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

Adds 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> - lotOperationName</td><td>String</td><td></td></tr>	
	</tbody>
</table>

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

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

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