# system.kanoa.item.updateItemUnit(itemUnitInfo, userId)

Updates an item unit. itemUnitInfo keys are required.

---
### Parameters
**itemUnitInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - itemUnitName</td><td>String</td><td></td></tr>	
	</tbody>
</table>

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

---
### Returns
**retVal** `Integer` # of records modified<br />
**msg** `String` None if success<br />

---
### Example
```python
userId = 47
retVal, msg = system.kanoa.item.updateItemUnit({'itemUnitId': 12, 'itemUnitName': 'Kilograms', 'enabled': True, userId)
```
