system.kanoa.event.updatePerformanceEvent
Description
Update the performance event. Update Link table accordinglySyntax
updatePerformanceEvent(performanceEventInfo, userId)Parameters:
Returns:
Dictionary
| Parameter | Type | Required | Notes | 
|---|---|---|---|
| performanceEventId | int | ||
| modeEventId | int | ||
| startDate | datetime | ||
| endDate | datetime | ||
| performanceStateId | int | ||
| value | float | ||
| note | string | 
Code Examples
# Example Usage:
userId = 18
performanceEventInfo = {
    'modeEventId': 5,
    'startDate': 2025-05-01 00:00:00,
    'endDate': 2025-05-01 08:00:00,
    'performanceStateId': 7,
    'value': 0.1,
    'note': 'Approved'
}
updatePerformanceEvent(performanceEventInfo, userId)
>
    1, None
>>>