# system.kanoa.shift.updateShiftEvents(paramsDict)

This function is called by the shiftTimer tag timer function to build the shiftEvents table. The shiftEvents table is used for SQL joins in shift analysis functions.
paramsDict keys are optional. If no dates are passed, the function will regenerate shift events from yesterday to two days in the future.

---
### Parameters
**paramsDict** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - assetPath</td><td>String</td><td></td></tr>	
 	<tr><td> - endDate</td><td>DateTime</td><td></td></tr>	
 	<tr><td> - forceDelete</td><td>Boolean</td><td>If true, all records between the start and end date will be deleted and then recreated. If false, it will only delete and recreate shift dates from the date of the last shiftEvent entry</td></tr>	
 	<tr><td> - startDate</td><td>DateTime</td><td></td></tr>	
	</tbody>
</table>

---
### Returns
**None** <br />

---
### Example
```python
startDate = system.date.parse("2024-11-01 00:00:00")
endDate = system.date.parse("2024-11-10 00:00:00")
system.kanoa.shift.updateShiftEvents({'assetPath': 'Kanoa Box Co\Box Plant\Packaging\Box Line 1', 'startDate': startDate, 'endDate': endDate})
```
