# system.kanoa.item.updateItem(itemInfo, userId)

Updates an item. ItemInfo keys are required unless otherwise stated.

---
### Parameters
**itemInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - enabled</td><td>Boolean</td><td>Not Required</td></tr>	
 	<tr><td> - itemClassId</td><td>Integer</td><td>None if this is an item at the root</td></tr>	
 	<tr><td> - itemColor</td><td>String</td><td>Not required. i.e '#00FF00'</td></tr>	
 	<tr><td> - itemDescription</td><td>String</td><td>Not required</td></tr>	
 	<tr><td> - itemId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - itemName</td><td>String</td><td></td></tr>	
	</tbody>
</table>

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

---
### Returns
**# of records modified** `Integer`<br />

---
### Example
```python
itemInfo = {
    'itemId': 1,
    'itemName': 'Sausages',
    'itemDescription': 'Delicious bangers',
    'itemClassId': None,
    'itemColor': '#FF0000',
    'enabled': True
}
retVal = system.kanoa.item.updateItem(itemInfo, 123)
```
