---
title: "Update schedule"
method: POST
path: "/uptime/updateSchedule"
tags: ["Uptime"]
---

# Update schedule

`POST /uptime/updateSchedule`

## Request

- Base URL: `https://api.databuddy.cc`
- URL: `https://api.databuddy.cc/uptime/updateSchedule`
- Auth: API key in header `x-api-key`

Updates an uptime schedule. Requires write:monitors scope.

## Request body

- object
  - `scheduleId` string, required
  - `name` string, nullable
  - `granularity` 'minute' | 'five_minutes' | 'ten_minutes' | 'thirty_minutes' | 'hour' | 'six_hours' | 'twelve_hours' | 'day'
  - `timeout` integer, nullable
  - `cacheBust` boolean

## Response `200`

OK

- object
  - `scheduleId` string, required
  - `url` string
  - `name` string, nullable
  - `granularity` 'minute' | 'five_minutes' | 'ten_minutes' | 'thirty_minutes' | 'hour' | 'six_hours' | 'twelve_hours' | 'day'

## Other responses

- `400`: 400
- `401`: 401
- `402`: 402
- `403`: 403
- `404`: 404
- `409`: 409
- `429`: 429
- `500`: 500
- `503`: 503

---

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