/srs/enable_privacy_protection
POST https://api.sitehost.nz/1.0/srs/enable_privacy_protection.json
Enable privacy protection for a domain.
Form Parameters
Parameter | Type | Required | Description |
client_id | integer | Yes | The ID for the client that the domain belongs to.Example: 1 |
domain | string | Yes | The domain name associates with the record.Example: example.com |
reason | string | Yes | The reason behind enable privacy protection.Example: your reason |
Code Samples
JavaScript PHP Rails Pythonvar 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
}
"msg": "Successful.",
"status": true,
"time": 32
}