system.kanoa.shift.addShift
Description
Adds a new shift (kanoaOps).Syntax
addShift(shiftInfo, userId)- shiftInfo (Dictionary) - Shift information.
- userId (Integer) - User ID.
- Shift ID (Integer).
Code Example
# Example Usage:
shiftInfo = {'shiftNameId': 1, 'assetId': 18, 'shiftColor': '#00FF00'}
shiftId = system.kanoa.shift.addShift(shiftInfo, 123)