API documentation
I-update Child Pangalanserver
I-update the IP address of an existing DNS server
Content-Type
application-json
kategorya
nameserverhost
aksyon
update
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 |
| ip | String | Bago DNS server IP address | 192.168.1.2 |
Mga parameter ng tugon
| Pangalan ng parameter | Uri | Paglalarawan |
|---|---|---|
| dns | String | DNS server name |
| ip | String | Na-update DNS server IP address |
Halimbawa ng Request
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=update&domain={domain}&dns={dns}&ip={ip}
-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",
"ip": "192.168.1.2"
}
}
}
400 Hindi wastong kahilingan
{
"code": 400,
"msg" : "Request parameter error",
}






