/srs/enable_privacy_protection


POST https://api.sitehost.nz/1.0/srs/enable_privacy_protection.json

Enable privacy protection for a domain.

Form Parameters

ParameterTypeRequiredDescription
client_idintegerYesThe ID for the client that the domain belongs to.Example: 1
domainstringYesThe domain name associates with the record.Example: example.com
reasonstringYesThe reason behind enable privacy protection.Example: your reason

Code Samples

JavaScript PHP Rails Python
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("POST", "https://api.sitehost.nz/1.0/srs/enable_privacy_protection.json", false);

var data = new FormData();
data.append("apikey", "your_key_here");
data.append("client_id", "1");
data.append("domain", "example.com");
data.append("reason", "your reason");

xmlHttp.send(data);

var response = xmlHttp.responseText;

Response

200:

application/json
{
  "msg": "Successful.",
  "status": true,
  "time": 32
}