API documentation
Tanggalin Child Pangalanserver
Alisin a magparehistroed DNS server
Content-Type
application-json
kategorya
nameserverhost
aksyon
delete
Mga parameter ng request
| Pangalan ng parameter | Uri | Paglalarawan | Halimbawa |
|---|---|---|---|
| domain | String | Pangalan ng domain | example.com |
| dns | String (3-30) | DNS server name (must match domain) | ns1.example.com |
Mga parameter ng tugon
| Pangalan ng parameter | Uri | Paglalarawan |
|---|---|---|
| dns | String | Tanggalind DNS server name |
Halimbawa ng Request
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=delete&domain={domain}&dns={dns}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Resulta ng Return
0 OK
Matagumpay na tugon
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com"
}
}
}
400 Hindi wastong kahilingan
{
"code": 400,
"msg" : "Request parameter error",
}






