# system.kanoa.lot.addLot(lotInfo, userId)

Adds a lot

---
### Parameters
**lotInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - itemId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - itemUnitId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - lotName</td><td>String</td><td></td></tr>	
	</tbody>
</table>

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

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

---
### Example
```python
lotInfo={
    "lotName": "Batch_2025A",
    "itemId": 42,
    "itemUnitId": 3
}
userId, 5
lotId, msg = system.kanoa.lot.addLot(lotInfo, userId)
```
