v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Backups

Restore a backup for given site (via background task)

For a given backup_id restore site with given site id.

post/v1/sites/{id}/backup/{backup_id}/restore

Path parameters

idinteger required

ID of the Site you are interacting with

Example:8880000888
backup_idinteger required

Request body

backup_directoryboolean

Whether to restore the files from the backup

backup_databaseboolean

Whether to restore the database from the backup

Example request

{
  "backup_directory": true
}

Response

OK

successboolean

whether the request succeeded

errorsstring[]
messagesstring[] nullable

Example response

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