API documentation
P?ivit? Child Nimiserver
P?ivit? the IP address of an existing DNS server
Sis?lt?tyyppi
application-json
kategoria
nameserverhost
toiminto
update
Pyynt?parametrit
| Parametrin nimi | Tyyppi | Kuvaus | Esimerkki |
|---|---|---|---|
| domain | Merkkijono | Verkkotunnus | example.com |
| dns | Merkkijono (3-30) | DNS server name (must match verkkotunnus) | ns1.example.com |
| ip | Merkkijono | Uusi DNS server IP address | 192.168.1.2 |
Vastausparametrit
| Parametrin nimi | Tyyppi | Kuvaus |
|---|---|---|
| dns | Merkkijono | DNS server name |
| ip | Merkkijono | P?ivitetty DNS server IP address |
Pyynn?n esimerkki
{
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"
}
Palautettu tulos
0 OK
Onnistunut vastaus
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com",
"ip": "192.168.1.2"
}
}
}
400 Virheellinen pyynt?
{
"code": 400,
"msg" : "Request parameter error",
}






