---
title: "Enable a backup schedule"
method: PATCH
path: "/backups/schedules/{id}/enable"
tags: ["Backups"]
---

# Enable a backup schedule

`PATCH /backups/schedules/{id}/enable`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/backups/schedules/{id}/enable`
- Auth: HTTP bearer

## Path parameters

- `id` integer, required

## Response `200`

Backup schedule enabled

- BackupScheduleResponse: Response type for backup schedule
  - `backup_type` string, required
  - `created_at` string, date-time, required
  - `description` string, nullable
  - `enabled` boolean, required
  - `id` integer, required
  - `include_control_plane` boolean, required: When `true`, every run also produces a `control_plane` backup (Temps's own Postgres). When `false`, only the external service fan-out happens.
  - `last_run` string, date-time, nullable
  - `max_runtime_secs` integer, nullable: Per-schedule wall-clock timeout override for backup jobs (seconds). `null` means the default of four hours (14400 seconds) is used.
  - `name` string, required
  - `next_run` string, date-time, nullable
  - `retention_period` integer, required
  - `s3_source_id` integer, required
  - `schedule_expression` string, required
  - `tags` string[], required
  - `target_all_services` boolean, required: When `true`, the schedule auto-includes every external service on the host (and any future ones). When `false`, the schedule only targets services attached via `backup_schedule_services`.
  - `updated_at` string, date-time, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Backup schedule not found
- `500`: Internal server error

## Changes

- **2026-11-26** `e1864d950604`: 4 breaking
  - the `created_at` response's property type changed from `integer` to `string`, and format from `int64` to `date-time` for status `200`
  - the `last_run` response's property type changed from `integer, null` to `string, null`, and format from `int64` to `date-time` for status `200`
  - the `next_run` response's property type changed from `integer, null` to `string, null`, and format from `int64` to `date-time` for status `200`
  - the `updated_at` response's property type changed from `integer` to `string`, and format from `int64` to `date-time` for status `200`
- **2026-11-09** `12896146b193`: 2 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
- **2026-10-05** `4b228ebed583`: 2 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
- **2026-10-05** `63a80791dc58`: 2 warning
  - removed the optional property `status` from the response with the `401` status
  - removed the optional property `status` from the response with the `403` status
- **2026-09-23** `f4efc4d5c7b7`: 2 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/backups/schedules/:id/enable/patch.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
