API documentation
Päivitä lapsitunnuspalvelin
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",
}






