# system.kanoa.item.addItemAttribute(itemAttrInfo, userId)

Adds an item attribute. itemAttrInfo keys are required. If the item attribute already exists, it will update it

---
### Parameters
**itemAttrInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - itemAttrName</td><td>String</td><td></td></tr>	
 	<tr><td> - itemAttrValue</td><td>String</td><td></td></tr>	
 	<tr><td> - itemId</td><td>Integer</td><td></td></tr>	
	</tbody>
</table>

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

---
### Returns
**itemAttrId** `Integer`<br />

---
### Example
```python
itemAttrId = system.kanoa.item.addItemAttribute({'itemAttrName': 'weight', 'itemId': 1, 'itemAttrValue': 57.4}, 123)
```
