# system.kanoa.event.updateCounterEvent(counterInfo, userId)

Updates a counter value. This function supports itemStates, items and workorders

---
### Parameters
**counterInfo** `Dictionary`: All keys are required unless stated.<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - counterEventId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - counterId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - deltaValue</td><td>Float</td><td></td></tr>	
 	<tr><td> - itemId</td><td>Integer</td><td>Not required</td></tr>	
 	<tr><td> - itemStateId</td><td>Integer</td><td>Not required</td></tr>	
 	<tr><td> - tStamp</td><td>DateTime</td><td></td></tr>	
 	<tr><td> - workOrderId</td><td>Integer</td><td>Not required</td></tr>	
	</tbody>
</table>

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

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

---
### Example
```python
userId = 18
counterInfo = {
    'counterEventId': 4,
    'counterId': 2,
    'deltaValue': 0.3,
    'tStamp': 2025-05-01 00:00:00
}
counterEventId, msg = system.kanoa.event.updateCounterEvent(counterInfo, userId)
```
