List Shift Schedules

Return a list of shiftSchedules within an organization

A Shift Schedule defines a pattern of shifts that should occur in sequence over a fixed period of time.

shiftSchedule Fields

ParameterData TypeDescription
calendarIdintegerThe ID of the Calendar associated to this resource.
colorIndicatorstringDefines the color used for shifts by the Calendar in the UI.
datesApplicable.fromstringThe start date of date range.
datesApplicable.tostringThe end date of the date range.
groupIdsintegerThe ID of the groups to which this ShiftSchedule is linked.
groupLinkAllowedbooleanA transient field indicating if the ShiftSchedule may be linked to a group.
hasMinStaffbooleanA transient field indicating whether minimum staff requirements exist.
icalUIDstringIf created using ical import, a reference to the ical UID which generated this resource.
minStaffAllowedbooleanA transient field indicating whether minimum staff requirements may be added to the ShiftSchedule. It is not permitted if staffing by group exists.
namestringThe name of the ShiftSchedule, unique to a Calendar.
numDaysintegerFor variable day shifts, the number of days. Not required when weekStartsWith is set, as 7 is implied.
schedule.daysarray of integersIs an array of days in the schedule for which shift times apply.
schedule.shiftstringDefined the start and end times for the shift. An end time that is before starrt time will be treated as an overnight shift.
schedule.shift.startstringDefines the start time for a shift, HH:MM format.
schedule.shift.endstringDefines the end time for a shift, HH:MM format.
sequenceAllowedbooleanA transient field indicating whether the ShiftSchedule may be sequenced. It is not permitted if staffing by group exists.
sequencedbooleanIf true, assignments will be notified in the order they are configured.
statusstringIndicates whether the resource is active or deleted.
timeZoneStringstringThe time zone in which the shift is located. Since DST is not observed in all time zones and observed at different time in the year for many time zones, to avoid issues this should be the time zone where contacts are physically located when possible.
weekStartsWithstringFor week based shifts, the day of week for which the ShiftSchedule starts. Must be SUNDAY or may be null if numDays is configured.

Common Parameters and Options

The services support common parameters, modeled after the JSON API Specification, are as follows:

  • Includes parameter permits requesting compound documents - responses including resources related to the requested resource.

    • Include may be a comma-delimited list of valid resource names for which the resource supports includes.
    • For example, /staffSchedules?include=calendar,shiftSchedule
  • Sparse Field Sets permit requesting which fields are returned by the service using the fields or fields[resourceName] (ex fields[calendar]) parameters. Paging permits requests for paged data using the pageSize and pageNo parameters.

    • The parameter value must be a comma-delimited list of valid fields for the resource.
      • For example, ?fields=name,status
    • If specifying sparse fields on an included resource, the include parameter is redundant and not required.
      • For example, ?include=calendar&fields[calendar]=name can be simplified to ?fields[calendar]=name
  • Sort permits sorting list responses using the sort parameter. Filters permit "querying" list responses using the filter[fieldName] (ex filter[status]) parameter

    • The parameter value must be a comma-delimited list of valid fields for the resource.
      • For example, ?sort=name,status.
    • The sort direction may be specified using +,- for ascending, descending respectively. Ascending is the default so + is not required.

Common Fields

The following fields are common to Calendar, ShiftSchedule, StaffSchedule, StaffSubstitution and ShiftSubstitution configurations.

ParameterData TypeDescription
accountIdintegerThe ID of the account that owns this resource.
createdDateintegerThe ID of the user who created the resource.
createdNamestringThe name of the user who created the resource.
createdProxyNamestringThe name of the proxy user who created the resource.
lastModifiedDatestringThe date and time the resource was last modified.
lastModifiedIdintegerThe ID of the user who last modified the resource.
lastModifiedNamestringThe name of the user who last modified the resource.
lastModifiedProxyNamestringThe name of the proxy user who last modified the resource.
organizationIDintegerThe ID of the organization that owns this resource.
resourceBundleIdintegerThe ID of the Role which owns this resource.
Language
Credentials
:
URL
Click Try It! to start a request and see the response here!