---
title: "Update Backup Schedule"
method: PUT
path: "/v0/sites/{site_id}/environments/{env_id}/backups/schedule"
tags: ["sites"]
---

# Update Backup Schedule

`PUT /v0/sites/{site_id}/environments/{env_id}/backups/schedule`

Sets the backup schedule for all days of the week.
Accepts an array of 7 day objects (index 0=Sunday through 6=Saturday),
each containing the hour and TTL for backups on that day.
This creates a workflow to update the backup schedule configuration.

## Path parameters

- `site_id` string, required
- `env_id` string, required

## Request body

- DaySchedule[]
  - `hour` integer — Hour when backups run (24-hour format, e.g., "03:00")
  - `ttl` integer — Time to live in seconds for backups created on this day

## Response `200`

- BackupScheduleUpdateResponse
  - `status` string, required — Status of the operation

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error
- `503` — Service Unavailable

---

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