# system.kanoa.event.updateStateEvent(stateInfo, userId)

updates a stateEvent record

---
### Parameters
**stateInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - assetStateId</td><td>Integer</td><td>Can set this to a sub asset if asset is down due to a downtime fault on a child cell otherwise null</td></tr>	
 	<tr><td> - note</td><td>String</td><td></td></tr>	
 	<tr><td> - origAssetId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - origStateCode</td><td>Integer</td><td></td></tr>	
 	<tr><td> - stateCode</td><td>Integer</td><td></td></tr>	
 	<tr><td> - stateEventId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - tStamp</td><td>DateTime</td><td></td></tr>	
	</tbody>
</table>

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

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

---
### Example
```python
stateInfo = {'assetStateId': 1, 'origAssetId': 2, 'stateCode': 4, 'origStateCode':7, 'note': 'updated', 'stateEventId': 567}
userId = 123
stateInfo = system.kanoa.event.updateStateEvent(stateInfo, userId)
```
