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

Updates a 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> - shiftBlockId</td><td>Integer</td><td></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
**# of records modified** `Integer`<br />

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