Setting Auto-Produži
Enable ili disable auto-renewal fili up to 100 domens. Novo plans renew fili one godina at a time.
Content-Type
application/json
kategorija
domain
akcija
set_auto_renew
Parametri zahteva
| Naziv parametra | Tip | Opis | Primer |
|---|---|---|---|
| domain | Niz | Required. Provide one domen ili a comma-separated list of up to 100 domens. | example.com,example.net |
| auto_renew | Ceo broj | Required. 1 enables i 0 disables auto-renewal fili all entries. | 1 |
Parametri odgovora
| Naziv parametra | Tip | Opis |
|---|---|---|
| results | Objekat[] |
Each result has domain, code, i msg.A code of 0 also returns the Булов auto_renew status.
|
| success_count | Ceo broj | Broj of successful entries, including settings already in effect. |
| fail_count | Ceo broj | Broj of entries that failed validation ili could not be saved. |
Primer zahteva
{
curl -g -X POST 'https://api.nicenic.net/v2/?category=domain&action=set_auto_renew&domain={domain}&auto_renew=1'
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Rezultat vraćen
0 OK
Uspešan odgovor
{
"code": 0,
"msg" : "success",
"data" : {
"results" : [
{
"domain" : "example.com",
"code" : 0,
"msg" : "success",
"auto_renew" : true
},
{
"domain" : "example.net",
"code" : 404,
"msg" : "Domain not found"
}
],
"success_count" : 1,
"fail_count" : 1
}
}
400 Neispravan zahtev
{
"code": 400,
"msg" : "Request parameter error",
"data" : []
}






