# Schedule

**Kind**: interface | **Module**: [Platform](https://docs.interop.io/desktop/reference/javascript/platform/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/platform/schedule/index.html

Describes a platform restart or shutdown schedule.

## Properties

- **`cron`** (`string`, optional)
  Custom cron expression used instead of `time`, `repeat`, and `day`.
  Will be omitted if no custom cron expression is set or one of these fields is locked by the administrator.
- **`day`** (`DayOfWeek`, optional)
  Day of the week for a weekly schedule. Omitted if `repeat` is set to `"daily"`.
- **`enabled`** (`boolean`, required)
  Flag indicating whether the schedule is enabled.
- **`locked`** (`LockableScheduleField[]`, required)
  Array containing the names of any schedule fields locked by the administrator.
- **`name`** (`ScheduleName`, required)
  Name of the schedule.
- **`options`** (`ScheduleOptions`, optional)
  Options for the scheduled operation, if configured.
- **`repeat`** (`"daily" | "weekly"`, required)
  Frequency of the scheduled operation.
- **`time`** (`string`, required)
  Time for the scheduled operation in the local time zone of the machine, using the `"HH:mm"` format (hours from `00` to `23`).

## Related types

- [DayOfWeek](https://docs.interop.io/desktop/reference/javascript/platform/dayofweek/index.md)
- [LockableScheduleField](https://docs.interop.io/desktop/reference/javascript/platform/lockableschedulefield/index.md)
- [ScheduleName](https://docs.interop.io/desktop/reference/javascript/platform/schedulename/index.md)
- [ScheduleOptions](https://docs.interop.io/desktop/reference/javascript/platform/scheduleoptions/index.md)
