# system.kanoa.event.updateStateEventInfo(stateEventId, stateEventInfoName, value, userId)

Adds, updates or deletes an entry in the stateEventInfo table. Can be used to stored meta data about any stateEvent.
i.e. whether a part was required for a downtime event.

---
### Parameters
**stateEventId** `Integer`: Id of the state event<br />
**stateEventInfoName** `String`: Name of the state event info to be added or modified<br />
**value** `String`: Value to add or edit<br />
**userId** `Integer`: Id of user executing the function<br />

---
### Returns
**stateEventInfoId if insert else # of records modified** `Integer`<br />

---
### Example
```python
stateEventId = 123
stateEventInfoName = 'exampleInfo'
value = 'exampleValue'
userId = 123
stateEventInfoId = system.kanoa.event.updateStateEventInfo(stateEventId, stateEventInfoName, value, userId)
```
