API documentation
C?p nh?t Child Tênserver
C?p nh?t the IP address of an existing DNS server
Content-Type
application-json
Danh m?c
nameserverhost
Hành ??ng
update
Tham s? yêu c?u
| Tên tham s? | Ki?u | M? t? | Ví d? |
|---|---|---|---|
| domain | Chu?i | Tên domain | example.com |
| dns | Chu?i (3-30) | DNS server name (must match tên mi?n) | ns1.example.com |
| ip | Chu?i | M?i DNS server IP address | 192.168.1.2 |
Tham s? ph?n h?i
| Tên tham s? | Ki?u | M? t? |
|---|---|---|
| dns | Chu?i | DNS server name |
| ip | Chu?i | ?? c?p nh?t DNS server IP address |
Ví d? yêu c?u
{
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"
}
K?t qu? tr? v?
0 OK
Ph?n h?i thành c?ng
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com",
"ip": "192.168.1.2"
}
}
}
400 Yêu c?u kh?ng h?p l?
{
"code": 400,
"msg" : "Request parameter error",
}






