Schedule

This endpoint is used to get a base schedule by its Id.

Response Payload Object

PropertyTypeDescription
descriptionstringThe description of the schedule.
hasCronSchedulesbooleanWhether or not the schedule has associated cron schedules.
idlongThe Id of the schedule.
isAutomaticbooleanWhether or not the doors associated with the schedule will be opened during the schedules active hours.
namestringThe name of the schedule.
siteIdlongThe Id of the associated site.
cronSchedulesAn array of the CronSchedule objectAll associated cron schedules (see below for a breakdown).
hasGroupbooleanHas at least one group association
hasUserbooleanHas at least one user association
hasDevicebooleanHas at least one device association
hasZonebooleanHas at least one zone association

CronSchedule Object

PropertyTypeDescription
activeOnHolidaysbooleanWhether or not this schedule will be active on holidays.
cron_expressionstringThe cron expression that is being used for the schedule.
endNullable DateTimeDate until when the schedule will be used, if any.
idlongThe Id of the cron schedule
scheduleIdlongId of base schedule associated with cron-schedule.
startDateTimeDate when the schedule had begun or will begin being used.
time_durationintegerTime (in minutes) that the schedule remains active from the start time in cron expression.

Controlled Errors

Error CodeError Message
error_schedule_not_foundNo schedule found with the specified Id.

Any status codes returned that are not provided here are generic status codes that can be found here.

Language
Authorization
OAuth2
Click Try It! to start a request and see the response here!