---
title: "Update a Schedule"
method: PUT
path: "/v1/schedules/{scheduleId}"
tags: ["Schedules"]
---

# Update a Schedule

`PUT /v1/schedules/{scheduleId}`

## Path parameters

- `scheduleId` string, required

## Headers

- `Authorization` string — User access token
- `Content-Type` 'application/json'

## Request body

- object
  - `name` string — Name of the schedule
  - `referenceTz` string — [Time zone identifier](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for the schedule
  - `schedule` object[] — The different schedules that will trigger an event
    - `daysOfWeek` integer[], required — Days of the week the schedule times are active where 0 represents Sunday and 6 represents Saturday.
    - `times` object[], required — The time segments throughout the day represented in seconds that the schedule is active.
      - `startTime` integer, required
      - `endTime` integer, required

## Response `200`

Returns the updated schedule

- object
  - `id` string, required — Unique identifier for the schedule
  - `name` string, required — Name of the schedule
  - `referenceTz` string, required — [Time zone identifier](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for the schedule
  - `schedule` object[], required — The different schedules that will trigger an event
    - `daysOfWeek` integer[], required — Days of the week the schedule times are active where 0 represents Sunday and 6 represents Saturday.
    - `times` object[], required — The time segments throughout the day represented in seconds that the schedule is active.
      - `startTime` integer, required
      - `endTime` integer, required

## Other responses

- `400` — Returns a list of validation errors
- `404` — Responds with a status code of 404 if a schedule could not be found

---

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