Setting Auto-Uusinta
Enable tai disable auto-renewal ftai up to 100 verkkotunnuss. Uusi plans renew ftai one vuosi at a time.
Sisältötyyppi
application/json
kategoria
domain
toiminto
set_auto_renew
Pyyntöparametrit
| Parametrin nimi | Tyyppi | Kuvaus | Esimerkki |
|---|---|---|---|
| domain | Merkkijono | Required. Provide one verkkotunnus tai a comma-separated list of up to 100 verkkotunnuss. | example.com,example.net |
| auto_renew | Kokonaisluku | Required. 1 enables ja 0 disables auto-renewal ftai all entries. | 1 |
Vastausparametrit
| Parametrin nimi | Tyyppi | Kuvaus |
|---|---|---|
| results | Objekti[] |
Each result has domain, code, ja msg.A code of 0 also returns the Boolen auto_renew status.
|
| success_count | Kokonaisluku | Numero of successful entries, including settings already in effect. |
| fail_count | Kokonaisluku | Numero of entries that failed validation tai could not be saved. |
Pyynnön esimerkki
{
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"
}
Palautettu tulos
0 OK
Onnistunut vastaus
{
"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 Virheellinen pyyntö
{
"code": 400,
"msg" : "Request parameter error",
"data" : []
}






