---
title: "Create a holiday schedule"
method: POST
path: "/holiday-schedules"
tags: ["Holiday Schedules"]
---

# Create a holiday schedule

`POST /holiday-schedules`

## Request

- Base URL: `https://www.ruddr.io/api/workspace`
- URL: `https://www.ruddr.io/api/workspace/holiday-schedules`
- Auth: HTTP bearer

## Request body

- object
  - `name` string, required: The name of the holiday schedule. Maximum 255 characters.
  - `isActive` boolean: Whether the holiday schedule is active.
  - `holidayIds` string[]: The IDs of holidays to associate with this holiday schedule.

## Response `200`

200

- HolidaySchedule
  - `id` string: The unique identifier for the object.
  - `name` string: The name of the holiday schedule.
  - `isActive` boolean: Whether the holiday schedule is active.
  - `createdAt` string, date-time: The timestamp when the object was created.
  - `holidays` object[]: The list of associated holidays.
    - `id` string: The unique identifier for the object.
    - `name` string: The name of the holiday.

## Other responses

- `400`: 400
- `409`: 409

---

[API](https://skmtc.dev/ruddr/apis/ruddr-api.md) · [All operations](https://skmtc.dev/ruddr/apis/ruddr-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ruddr/apis/ruddr-api/revisions/01c3f2a969ba?raw)
