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 Code | Error Message |
---|---|
error_schedule_is_null | Null data provided to create the schedule. |
error_cron_has_no_duration | No valid time duration was provided. |
error_cron_invalid_interval | Invalid end date provided for schedule. If not null, the end date must be after start date. |
error_cron_invalid_expression | Expression is either null, empty, or in an invalid format. |
error_schedule_not_found | Base schedule with Id provided was not found. |
error_schedule_processing | Schedule creation failed. |
Any status codes returned that are not provided here are generic status codes that can be found here.