---
title: "Create a scheduler"
method: POST
path: "/schedulers"
tags: ["Schedulers"]
---

# Create a scheduler

`POST /schedulers`

## Request body

- CreateSchedulerBody
  - `name` string, required — Name of the scheduler
  - `startDate` string, required — Start date (YYYY-MM-DD)
  - `startTime` string, required — Start time (HH:mm)
  - `timeZone` string — IANA time zone (e.g. "UTC", "Europe/Brussels")
  - `endDate` string — End date (YYYY-MM-DD)
  - `endTime` string — End time (HH:mm)
  - `recurrence` string — RRULE recurrence string
  - `channelIds` string[] — Channel IDs (deprecated, use channels instead). All engines of each channel are scheduled.
  - `channels` SchedulerChannelSelection[] — Channels with optional engine selection. Use instead of channelIds.
    - `channelId` string, required — Channel ID
    - `engineIds` string[] — Engine IDs of this channel to start/stop. Omit to include all engines of the channel.
  - `enabled` boolean — Whether the scheduler is enabled

## Response `200`

Created scheduler

- SchedulerObjectResult
  - `data` object, required — Scheduler object
    - `id` string, required — Unique identifier of the scheduler
    - `name` string, required — Name of the scheduler
    - `createdAt` string, required — Creation timestamp
    - `updatedAt` string, required — Last update timestamp
    - `enabled` boolean, required — Whether the scheduler is enabled
    - `startDate` string, required — Start date (YYYY-MM-DD)
    - `startTime` string, required — Start time (HH:mm)
    - `endDate` string — End date (YYYY-MM-DD)
    - `endTime` string — End time (HH:mm)
    - `recurrence` string — RRULE recurrence string
    - `timeZone` string, required — IANA time zone
    - `channelIds` string[], required — Channel IDs
    - `channels` SchedulerChannelSelection[], required — Channels with optional engine selection (engineIds omitted = all engines)
      - `channelId` string, required — Channel ID
      - `engineIds` string[] — Engine IDs of this channel to start/stop. Omit to include all engines of the channel.

---

[API](https://skmtc.net/dolby/apis/theolive-api.md) · [All operations](https://skmtc.net/dolby/apis/theolive-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dolby/theolive-api/revisions/3dc30dd23624/schema)
