WordPressBackup
WordPress Manager Backups

Return WordPress site backups

This function retrieves a list of available WordPress® site backups of a single site.

Note:

You must install the WordPress Manager cPanel plugin to access this API function.

get/WordPressBackup/get_available_backups

Request

  • Base URL
    https://cpanel-server.tld:2083/execute
  • Auth
    HTTP basic

Query parameters

sitestring required
Example:example.com/wordpress

The WordPress site's URL without the protocol prefix.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "get_available_backups",
  "module": "WordPressBackup",
  "result": {
    "data": {
      "available": [
        {
          "date": 1539267197000,
          "file": "example.com__2018-10-10T10:53:31-0500.tar.gz",
          "path": "/home/example/wordpress-backups/example.com__2018-10-10T10:53:31-0500.tar.gz",
          "site": "example.com"
        }
      ],
      "dir": "/home/example/wordpress-backups"
    },
    "status": 1
  }
}

Changes

No recorded changes to this operation across all 5 revisions of this API.