latestSwagger 2.02026-08-1095121164.0 KB

94758829689e

sites

Update Backup 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.

put/v0/sites/{site_id}/environments/{env_id}/backups/schedule

Path parameters

site_idstring required

Site UUID

env_idstring required

Environment ID

Request body

hourinteger

Hour when backups run (24-hour format, e.g., "03:00")

ttlinteger

Time to live in seconds for backups created on this day

Example request

[
  {
    "hour": 3,
    "ttl": 2764800
  }
]

Response

statusstring required

Status of the operation

Example response

{
  "status": "success"
}