---
title: "Create the nightly schedule for the Temps Cloud destination unless one already targets it (ADR-044). Answers the same shape as the reconcile so the console can swap it into the status it already holds."
method: POST
path: "/cloud/backups/schedule/ensure"
tags: ["Cloud"]
---

# Create the nightly schedule for the Temps Cloud destination unless one already targets it (ADR-044). Answers the same shape as the reconcile so the console can swap it into the status it already holds.

`POST /cloud/backups/schedule/ensure`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/cloud/backups/schedule/ensure`
- Auth: HTTP bearer

## Response `200`

The managed destination's setup with the schedule that targets it, created when none did

- ManagedBackupSetup
  - `action` 'none' | 'retry' | 'renew_subscription', required
  - `archive_conflicts` ManagedBackupArchiveConflict[], required: Services whose continuous archive is pinned elsewhere. Each fails under the nightly Cloud schedule until repointed (ADR-044).
    - `pinned_s3_source_id` integer, required
    - `pinned_s3_source_name` string, required: Name of the pinned source, or its id as text when the row is gone.
    - `service_id` integer, required
    - `service_name` string, required
    - `service_type` string, required
  - `managed_s3_source_id` integer, nullable: The `s3_sources` row of the managed destination, when it exists, so a client can repoint a conflicting service at it.
  - `message` string, required
  - `ready` boolean, required
  - `schedule` ManagedBackupSchedule, nullable: What the Cloud settings page shows about the schedule that targets the managed destination.
    - `enabled` boolean, required
    - `id` integer, required
    - `name` string, required
    - `next_run` string, nullable
    - `retention_period` integer, required: Days each backup is kept before the schedule's retention deletes it.
    - `schedule_expression` string, required
  - `status` 'disabled' | 'ready' | 'needs_setup' | 'subscription_required' | 'unavailable', required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions, a deployment token, or a caller that is not an instance administrator: the schedule backs up every database and the control plane
- `409`: No schedule could be set up; the detail says why (Cloud did not answer the plan's retention, the backup plugin is not enabled)
- `500`: Database or link state failure

## Changes

- **2026-11-09** `12896146b193`: 4 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
  - removed the required property `extensions` from the response with the `409` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-05** `4b228ebed583`: 4 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
  - added the optional property `status` to the response with the `409` status
  - added the optional property `status` to the response with the `500` status
- **2026-10-05** `63a80791dc58`: 4 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
  - removed the optional property `status` from the response with the `409` status
  - removed the optional property `status` from the response with the `500` status
- **2026-09-23** `f4efc4d5c7b7`: 4 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
  - added the optional property `status` to the response with the `409` status
  - added the optional property `status` to the response with the `500` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/cloud/backups/schedule/ensure/post.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)
