system.kanoa.shift.addShift(shiftInfo, userId)
Adds a new shift. All shiftInfo keys are required.
Parameters
shiftInfo Dictionary
| - assetId | Integer | |
| - shiftColor | String | i.e. '#00FF00' |
| - shiftNameId | Integer |
userId Integer
Returns
shiftId Integer
Example
shiftInfo = {'shiftNameId': 1, 'assetId': 18, 'shiftColor': '#00FF00'}
shiftId = system.kanoa.shift.addShift(shiftInfo, 123)