system.kanoa.shift.addShiftBlock
Description
Adds a new shift block (kanoaOps).Syntax
addShiftBlock(shiftBlockInfo, userId)- shiftBlockInfo (Dictionary) - Shift block information.
- userId (Integer) - User ID.
- Shift Block ID (Integer).
Code Example
# Example Usage:
shiftBlockInfo = {'shiftId': 1, 'startDate': someDate, 'endDate': someDate, 'rruleStr': None}
shiftBlockId = system.kanoa.shift.addShiftBlock(shiftBlockInfo, 123)