# system.kanoa.lot.addLotAttribute(lotAttributeInfo, userId)

Adds a lot attribute

---
### Parameters
**lotAttributeInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - lotAttributeName</td><td>String</td><td></td></tr>	
 	<tr><td> - lotAttributeValue</td><td>String</td><td></td></tr>	
 	<tr><td> - lotId</td><td>Integer</td><td></td></tr>	
	</tbody>
</table>

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

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

---
### Example
```python
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
lotAttributeInfo = {
						'lotId': 45,
						'lotAttributeName': 'testWeight',
						'lotAttributeValue': 100
					}
	
lotAttributeId, msg = system.kanoa.lot.addLotAttribute(lotAttributeInfo, userId)
```
