restore_domain

The restore_domain method restores a deleted domain.

Syntax

{
   <credentials object> 
   "domain": <domain name>, 
   "id": <domain id>, 
   "new_name": <new domain name>
}

Request fields for restore_domain

The following fields can be used in the restore_domain method:

Field nameObligationDefinition/Value
domainRequiredThe current name of the domain you want to restore.
idRequiredThe domain id. This value can be retrieved by using the search_domains method with the deleted field set to true.
new_nameRequiredThe new name for the domain. This value must be submitted, but can be the same as domain (the original domain name).

Response fields for restore_domain

The following fields may be returned in response to the restore_domain method:

Field nameObligationDescription/Value
errorReturned if success = falseA text string that explains the error.
error_numberReturned if success = falseA number that represents the error.
successAlways returnedIndicates whether the request was successful or not. Allowed values are true and false.

Examples for restore_domain

Request

{
  "credentials": {
    "user": "[email protected]",
    "password": "sw0rdf1sh"
  },
  "domain": "example2.com",
  "id": "1325876554",
  "new_name": "example2-restored.com"
}

Response

{
  "success": true,
}