Reschedule Time Off
A 3-step recipe with Factorial. We can help you get access.
Recipe · 3 steps
Reschedule Time Off
with Factorial
Find an employee's leave and reschedule it to new dates.
- List the employee's leaves in the window and branch on whether one was found before rescheduling.
- Update the matched leave with the new start and finish dates.
- Read the leave back to confirm the rescheduled dates.
What you'll need to have ready
- employee_id: The id of the employee whose leave is being rescheduled.
- from: The start of the window to search leaves in (YYYY-MM-DD).
- to: The end of the window to search leaves in (YYYY-MM-DD).
- new_start_on: The new first day of the leave (YYYY-MM-DD).
- new_finish_on: The new last day of the leave (YYYY-MM-DD).
For your developer
Arazzo workflow factorial:reschedule-time-off, 3 operations: listLeaves → updateLeave → getLeave. Specs on APIs.io.