# system.kanoa.item.updateItemPeriod(periodInfo, userId)

Update the item period. All periodInfo keys are required.

---
### Parameters
**periodInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - itemPeriodId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - itemPeriodName</td><td>String</td><td></td></tr>	
	</tbody>
</table>

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

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

---
### Example
```python
periodInfo = {'itemPeriodId': 1, 'itemPeriodName': 'second', 'enabled': True}
modifiedRecords = system.kanoa.item.updateItemPeriod(periodInfo, 123)
```
