The availability of staff members, services and resources is managed using schedules. A schedule has a number of shift patterns that control the available times. If your staff have regularly repeating shifts the shift patterns API can be used to create them. However if you just specify start and end times for dates, the shifts API can be used.