---
title: "Update an office hours schedule"
method: PUT
path: "/office-hours/{id}"
---

# Update an office hours schedule

`PUT /office-hours/{id}`

Update an office hours schedule. The shifts array replaces all existing shifts — include all shifts you want to keep.

## Path parameters

- `id` string, required

## Request body

- UpdateOfficeHoursPublicDto
  - `name` string, required — Updated schedule name
  - `iana_timezone` string, required — Updated IANA timezone
  - `shifts` object[], required — Complete list of shifts — replaces all existing shifts
    - `id` string, required — Shift ID (from the existing schedule)
    - `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")

## 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/versions/57b06b52302d/schema)
