---
title: "Update Scheduled Downtime"
method: POST
path: "/schedules/downtime/{downtime_id}/"
---

# Update Scheduled Downtime

`POST /schedules/downtime/{downtime_id}/`

## Request

- Base URL: `https://client.apimetrics.io/api/2`
- URL: `https://client.apimetrics.io/api/2/schedules/downtime/{downtime_id}/`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/apicontext/apis/api-settings/docs/schedules/downtime/:downtime_id/post.ts> (a function with typed inputs; its response is checked against the schema)

Use this API to update the Downtime for a Schedule.

## Path parameters

- `downtime_id` string, required

## Request body

- object
  - `downtime` object: (set content-type: application/json)
    - `start_time` string: Start time of Downtime
    - `end_time` string: Time when Downtime ends
    - `zone` string: Timezone to use when applying Downtime
    - `repeated` boolean: Whether or not the Downtime repeats daily (or weekly)
    - `repeat_days` integer: If repeated, how many days later to repeat Downtime

## Response `200`

200

- object
  - `meta` object
    - `project_id` string
    - `schedule_id` string
    - `created` string
    - `state` string
    - `last_update` string
  - `id` string
  - `schedule` object
    - `repeat_days` integer
    - `start_time` string
    - `repeated` boolean
    - `end_time` string
    - `zone` string

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/apicontext/apis/api-settings.md) - [All operations](https://skmtc.dev/apicontext/apis/api-settings/llms.txt) - [OpenAPI document](https://skmtc.dev/apicontext/apis/api-settings/revisions/2e9a62324e82?raw)
