system.kanoa.shift.updateShiftBlock(scheduleBlockInfo, userId)
Updates a shift block. All shiftBlockInfo keys are required
Parameters
scheduleBlockInfo Dictionary
| - crewSize | Float | |
| - endDate | DateTime | |
| - rruleStr | String | None if this is not a recurring event |
| - shiftBlockId | Integer | |
| - shiftId | Integer | |
| - startDate | DateTime |
userId Integer
Returns
# of records modified Integer
Example
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)