Backups

Update a backup schedule (partial update).

Changed on

All request fields are optional; only fields that are present in the JSON body are updated. Absent fields leave the corresponding column unchanged. If schedule_expression is changed, next_run is recomputed automatically.

patch/backups/schedules/{id}

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

idinteger required

Request body

descriptionstring nullable

New human-readable description. Pass an empty string "" to clear.

enabledboolean nullable

Enable or disable the schedule. Skipped when None.

include_control_planeboolean nullable

Toggle whether the control-plane backup is produced on every run.

max_runtime_secsinteger nullable

Per-schedule wall-clock timeout override (seconds).

  • None (field absent) — leave current value unchanged
  • Some(None) (field present, JSON null) — clear override; fall back to engine default
  • Some(Some(n)) — set to n seconds (must be >= 60)
namestring nullable

New schedule name. Skipped when None. Must not be empty if provided.

retention_periodinteger nullable

Days to retain backups produced by this schedule. Must be >= 1.

schedule_expressionstring nullable

New cron expression with a leading seconds field (sec min hour day-of-month month day-of-week, e.g. 0 0 3 * * *). When changed, next_run is recomputed.

service_idsinteger[] nullable

Replace the explicit external-service selection atomically with the schedule update. Only meaningful when target_all_services resolves to false; an empty list explicitly clears the selection.

tagsstring[] nullable

Replace the full tag list. Skipped when None.

target_all_servicesboolean nullable

Toggle between "back up every database" (true) and "back up only the explicit list" (false). When set to true, the server clears the explicit membership rows for this schedule.

Example request

{
  "schedule_expression": "0 0 3 * * *"
}

Response

Schedule updated

backup_typestring required
created_atstring date-time required
descriptionstring nullable
enabledboolean required
idinteger required
include_control_planeboolean 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_runstring date-time nullable
max_runtime_secsinteger nullable

Per-schedule wall-clock timeout override for backup jobs (seconds). null means the default of four hours (14400 seconds) is used.

namestring required
next_runstring date-time nullable
retention_periodinteger required
s3_source_idinteger required
schedule_expressionstring required
tagsstring[] required
target_all_servicesboolean 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_atstring date-time required

Example response

{
  "schedule_expression": "0 0 3 * * *"
}

Changes

    • breaking

      the created_at response's property type changed from integer to string, and format from int64 to date-time for status

    • breaking

      the last_run response's property type changed from integer null to string null, and format from int64 to date-time for status

    • breaking

      the next_run response's property type changed from integer null to string null, and format from int64 to date-time for status

    1 more change in this revision