system.kanoa.event.addPerformanceEvent
Description
Adds a new performance eventSyntax
addPerformanceEvent(performanceEventInfo, userId)Parameters:
Returns:
Dictionary
| Parameter | Type | Required | Notes |
|---|---|---|---|
| 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'
}
addPerformanceEvent(performanceEventInfo, userId)
>
45, None
>>>