# system.kanoa.shift.addShiftBlock(shiftBlockInfo, userId)

Adds a new shift block. All shiftBlockInfo keys are required

---
### Parameters
**shiftBlockInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - crewSize</td><td>Float</td><td></td></tr>	
 	<tr><td> - endDate</td><td>DateTime</td><td></td></tr>	
 	<tr><td> - rruleStr</td><td>String</td><td>None if this is not a recurring event</td></tr>	
 	<tr><td> - shiftId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - startDate</td><td>DateTime</td><td></td></tr>	
	</tbody>
</table>

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

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

---
### Example
```python
shiftBlockInfo = {
                    'shiftId': 1, 
                    'startDate': system.date.parse("2025-11-05 06:00:00"), 
                    'endDate': system.date.parse("2025-11-05 13:00:00"), 
                    'rruleStr': None,
                    'crewSize': None
                 }
shiftBlockId = system.kanoa.shift.addShiftBlock(shiftBlockInfo, 123)
```
