Skip to main content

system.kanoa.shift.addShiftBlock

Description

Adds a new shift block (kanoaOps).

Syntax

addShiftBlock(shiftBlockInfo, userId)
  • Parameters
      shiftBlockInfo (Dictionary) - Shift block information.
      userId (Integer) - User ID.
  • Returns
      Shift Block ID (Integer).
  • Code Examples

    # Example Usage:
    shiftBlockInfo = {'shiftId': 1, 'startDate': someDate, 'endDate': someDate, 'rruleStr': None}
    shiftBlockId = system.kanoa.shift.addShiftBlock(shiftBlockInfo, 123)