API documentation
A?uriraj Child Imeserver
A?uriraj the IP address of an existing DNS server
Content-Type
application-json
kategorija
nameserverhost
akcija
update
Parametri zahteva
| Naziv parametra | Tip | Opis | Primer |
|---|---|---|---|
| domain | Niz | Naziv domena | example.com |
| dns | Niz (3-30) | DNS server name (must match domen) | ns1.example.com |
| ip | Niz | Novo DNS server IP address | 192.168.1.2 |
Parametri odgovora
| Naziv parametra | Tip | Opis |
|---|---|---|
| dns | Niz | DNS server name |
| ip | Niz | A?urirano DNS server IP address |
Primer zahteva
{
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"
}
Rezultat vra?en
0 OK
Uspe?an odgovor
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com",
"ip": "192.168.1.2"
}
}
}
400 Neispravan zahtev
{
"code": 400,
"msg" : "Request parameter error",
}






