latestSwagger 2.02026-08-1095121164.0 KB

94758829689e

sites

Create Backup

Creates a new backup for an environment.

post/v0/sites/{site_id}/environments/{env_id}/backups

Path parameters

site_idstring required

Site UUID

env_idstring required

Environment ID

Request body

element'all' | 'code' | 'database' | 'files' required

Backup element type

keep_forinteger required

Number of days to keep the backup

Example request

{
  "element": "all",
  "keep_for": 365
}

Response

active_descriptionstring

Active description of the workflow

idstring required

Workflow ID

number_of_tasksinteger

Number of tasks in the workflow

Example response

{
  "active_description": "Creating database backup",
  "id": "12345678-1234-1234-1234-123456789012",
  "number_of_tasks": 5
}