# system.kanoa.shift.addShiftBlockException(shiftBlockId, exceptionDate, userId)

Adds a shift block exception

---
### Parameters
**shiftBlockId** `Integer`: Id of the shift block to add the exception to<br />
**exceptionDate** `DateTime`: Date that the exception is for<br />
**userId** `Integer`: Id of user executing the function<br />

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

---
### Example
```python
shiftBlockExceptionId = system.kanoa.shift.addShiftBlockException(1, system.date.parse("2025-11-05 00:00:00"), 123)
```
