v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Backups

Create a new backup for given site.

For a given site create a new backup.

post/v1/sites/{id}/backup

Path parameters

idinteger required

ID of the Site you are interacting with

Example:8880000888

Request body

labelstring required

Label / Name of the backup

backup_directoryboolean

If the backup should include all files from the site

backup_databaseboolean

If the backup should include the database

Example request

{
  "label": "April 3rd Backup - Before Plugin Updates",
  "backup_directory": true
}

Response

OK

successboolean

whether the request succeeded

errorsstring[]
messagesstring[] nullable

Example response

{
  "success": true,
  "errors": [],
  "messages": [],
  "result": {
    "task_level": "account"
  }
}