API documentation
Kreiraj Child Nazivserver
Registriraj a new DNS server fili use with a specific domena
Content-Type
application-json
kategorija
nameserverhost
akcija
add
Parametri zahtjeva
| Naziv parametra | Tip | Opis | Primjer |
|---|---|---|---|
| domain | String | Naziv domene | example.com |
| dns | String (3-30) | DNS server name (must match domena) | ns1.example.com |
| ip | String | DNS server IP address | 192.168.1.1 |
Parametri odgovora
| Naziv parametra | Tip | Opis |
|---|---|---|
| dns | String | DNS server name |
| ip | String | DNS server IP address |
Primjer zahtjeva
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=add&domain={domain}&dns={dns}&ip={ip}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Vrati rezultat
0 OK
Uspje?an odgovor
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com",
"ip": "192.168.1.1"
}
}
}
400 Neispravan zahtjev
{
"code": 400,
"msg" : "Request parameter error",
}






