# system.kanoa.shift.addShiftEvent(shiftEventInfo, userId)

This function adds an entry to the shiftEvent table. All shiftEventInfo keys are required

---
### Parameters
**shiftEventInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - assetId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - shiftId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - tStamp</td><td>DateTime</td><td></td></tr>	
	</tbody>
</table>

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

---
### Returns
**shiftEventId** `Integer`<br />

---
### Example
```python
shiftEventInfo = {'assetId': 1, 'shiftId': 2, 'tStamp': system.date.parse("2025-11-05 00:00:00")}
shiftEventId = system.kanoa.shift.addShiftEvent(shiftEventInfo, 123)
```
