# system.kanoa.event.updatePerformanceEvent(performanceEventInfo, userId)

Update the performance event. Update Link table accordingly

---
### Parameters
**performanceEventInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - endDate</td><td>DateTime</td><td></td></tr>	
 	<tr><td> - modeEventId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - note</td><td>String</td><td></td></tr>	
 	<tr><td> - performanceEventId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - performanceStateId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - startDate</td><td>DateTime</td><td></td></tr>	
 	<tr><td> - value</td><td>Float</td><td></td></tr>	
	</tbody>
</table>

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

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

---
### Example
```python
userId = 18
performanceEventInfo = {
    'performanceEventId': 15,
    'modeEventId': 5,
    'startDate': system.date.parse("2025-11-01 00:00:00"),
    'performanceStateId': 7,
    'value': 0.1,
    'note': 'Approved'
}
updatePerformanceEvent(performanceEventInfo, userId)
>
    1, None
>>>
```
