Add APIs
Use these APIs to add time intervals from a starting DateTime value during business hours only. Returns DateTime values in the configured time zone in the schedule. Holidays are excluded from working hours during calculation. Return type is DateTime.
Use Shift Configured for Logged-in User
add(DateTime startDate, Duration duration)
If no shift is configured in User Parameters, system-level settings are used. If no system-level settings are found, an error is thrown.
Use Shift Configured for Passed-in User
addByUser(UUID userId, DateTime startDate, Duration duration)
Use Passed-in Shift
addByShift(UUID shiftId, DateTime startDate, Duration duration)
For more information: