# system.kanoa.schedule.addScheduleBlockException(scheduleBlockId, exceptionDate, userId)

Adds a new scheduleBlock exception

---
### Parameters
**scheduleBlockId** `Integer`: Id of Schedule Block<br />
**exceptionDate** `DateTime`: Date of day to add an exception for<br />
**userId** `Integer`:Id of the user executing the function<br />

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

---
### Example
```python
scheduleBlockId = 789
exceptionDate = system.date.parse("2025-11-05 00:00:00")
userId = 101
scheduleBlockExceptionId = system.kanoa.schedule.addScheduleBlockException(scheduleBlockId, exceptionDate, userId)
```
