---
title: "Create an office hours schedule"
method: POST
path: "/office-hours"
---

# Create an office hours schedule

`POST /office-hours`

Create a new office hours schedule with time shifts. Each shift defines a day (or day range) and start/end times. Example: Monday-Friday 9am-5pm EST would be one shift with day_of_week "monday_to_friday", start_time "09:00:00", end_time "17:00:00", and iana_timezone "America/New_York".

## Request body

- CreateOfficeHoursPublicDto
  - `name` string, required — Schedule name (e.g. "Business Hours", "Weekend Support")
  - `iana_timezone` string, required — IANA timezone for the schedule (e.g. "America/New_York", "Europe/London", "Asia/Tokyo")
  - `shifts` object[], required — Time blocks when support is available. Use day ranges like "monday_to_friday" for convenience.
    - `day_of_week` 'everyday' | 'friday' | 'friday_and_saturday' | 'monday' | 'monday_to_friday' | 'saturday' | 'sunday' | 'sunday_and_monday' | 'sunday_to_thursday' | 'thursday' | 'tuesday' | 'wednesday', required — Day(s) of week: "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday", "everyday", "monday_to_friday", "sunday_to_thursday", "friday_and_saturday", "sunday_and_monday"
    - `start_time` string, required — Start time in HH:mm:ss format (e.g. "09:00:00")
    - `end_time` string, required — End time in HH:mm:ss format (e.g. "17:00:00")

## Response `200`

Default Response

- OfficeHoursPublicResponseDto
  - `id` string, required — Office hours schedule ID
  - `name` string, required — Schedule name (e.g. "Weekday Support", "Weekend Hours")
  - `iana_timezone` string, required — IANA timezone (e.g. "America/New_York", "Europe/London")
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `shifts` object[], required — The time blocks when support is available
    - `day_of_week` 'everyday' | 'friday' | 'friday_and_saturday' | 'monday' | 'monday_to_friday' | 'saturday' | 'sunday' | 'sunday_and_monday' | 'sunday_to_thursday' | 'thursday' | 'tuesday' | 'wednesday', required — Day(s) of week: "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday", "everyday", "monday_to_friday", "sunday_to_thursday", "friday_and_saturday", "sunday_and_monday"
    - `start_time` string, required — Start time in HH:mm:ss format (e.g. "09:00:00")
    - `end_time` string, required — End time in HH:mm:ss format (e.g. "17:00:00")
    - `id` string, required — Shift ID
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `500` — Internal Server Error

---

[API](https://skmtc.net/open/apis/opencx-api.md) · [All operations](https://skmtc.net/open/apis/opencx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/open/opencx-api/revisions/57b06b52302d/schema)
