Create Cron Schedule

This endpoint is used to create a cron schedule to describe a time period that the device will allow users associated with the schedule to access doors. If the schedule was created successfully, then the Id of the cron schedule will be returned.

A cron expression for each schedule will determine the time the schedule starts and what days of the week it will be active for. The time duration will be used to determine the time that the schedule would end by adding the time duration (which is in minutes) to the start time defined in the cron expression. For more information on the format of the cron expressions, you can visit this guide on Oracle's website.

Controlled Errors

Error CodeError Message
error_schedule_is_nullNull data provided to create the schedule.
error_cron_has_no_durationNo valid time duration was provided.
error_cron_invalid_intervalInvalid end date provided for schedule. If not null, the end date must be after start date.
error_cron_invalid_expressionExpression is either null, empty, or in an invalid format.
error_schedule_not_foundBase schedule with Id provided was not found.
error_schedule_processingSchedule creation failed.

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

Body Params
int64
required

Id of base schedule to associate cron schedule to.

string
required

The cron expression that will be used for the schedule.

int32
required

Time (in minutes) to remain active after start time in cron expression.

date
required

Date when the schedule will begin being used.

date

Date until when the schedule will be used.

boolean

Whether or not this schedule will be active on holidays. If this value is not passed, it will default to false.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/plain