Creates a new availability for an employee. Availability is period when employee is unavailable for work.

All date time data in body params need to be in Primary Admin's timezone.

To create unavailability for another employee, role "ADMIN" or permission "EmployeesAddEdit" is needed.

There are two types of availability. Daily and custom.

Daily availability is set for some day of week end repeats every week on that day in future.

Custom availability is allows to set availability for some specific date in future.

To create DAILY availability, set repeatType=2, repeatEndNever=true, isCustom=false and required days=true.