---
title: "PATCH /api/v1/maintenance/schedules/{pk}/"
method: PATCH
path: "/api/v1/maintenance/schedules/{pk}/"
tags: ["maintenance"]
---

# PATCH /api/v1/maintenance/schedules/{pk}/

`PATCH /api/v1/maintenance/schedules/{pk}/`

## Request

- Base URL: `https://uptime.com` (the document declares no server; this is the origin it was published from)
- URL: `https://uptime.com/api/v1/maintenance/schedules/{pk}/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/docs/api/v1/maintenance/schedules/:pk/patch.ts> (a function with typed inputs; its response is checked against the schema)

Partially update a maintenance schedule

Only the supplied fields are updated. When changing `schedule_type`, include
the fields required by the new type (see the `PUT` description above for the
per-type requirements: `RRULE`, `ONE_OFF`, and `MANUAL`).

## Path parameters

- `pk` string, required

## Request body

- MaintenanceScheduleInput
  - `name` string
  - `schedule_type` 'RRULE' | 'MANUAL' | 'ONE_OFF', required
  - `starts_at` string, date-time, required
  - `ends_at` string, date-time, nullable
  - `rrule` string
  - `duration_minutes` integer, nullable
  - `is_active` boolean
  - `pause_checks_during_maintenance` boolean
  - `services` integer[]
  - `tags` integer[]

## Response `200`

- MaintenanceSchedule
  - `id` integer
  - `name` string
  - `schedule_type` 'RRULE' | 'MANUAL' | 'ONE_OFF'
  - `starts_at` string, date-time
  - `ends_at` string, date-time, nullable
  - `rrule` string
  - `duration_minutes` integer, nullable
  - `is_active` boolean
  - `pause_checks_during_maintenance` boolean
  - `services` string
  - `tags` object[]
    - `id` integer
    - `tag` string, required
    - `color_hex` string
    - `usage_count` integer
  - `created_at` string, date-time
  - `modified_at` string, date-time

---

[API](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema.md) - [All operations](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/llms.txt) - [OpenAPI document](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/revisions/e1e4a57a60d8?raw)
