Skip to main content

system.kanoa.shift.updateShiftBlock(scheduleBlockInfo, userId)

Updates a shift block. All shiftBlockInfo keys are required


Parameters

scheduleBlockInfo Dictionary

- crewSizeFloat
- endDateDateTime
- rruleStrStringNone if this is not a recurring event
- shiftBlockIdInteger
- shiftIdInteger
- startDateDateTime

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)