Restore a domain from the restore point.

This function reverts a document root to the restore point.

SecurityBasicAuth
Request
query Parameters
domain
required
string

A cPanel account's domain.

Example: domain=example.com
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Sitejet/restore_document_root
Request samples
uapi --output=jsonpretty \
  --user=username \
  Sitejet \
  restore_document_root \
  domain='example.com'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "restore_document_root",
  • "module": "Sitejet",
  • "result": {
    • "data": { },
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}