Setting Auto-नवीनीकरण
Enable या disable auto-renewal fया up to 100 डोमेनs. नया plans renew fया one वर्ष at a time.
Content-Type
application/json
श्रेणी
domain
कार्रवाई
set_auto_renew
अनुरोध पैरामीटर
| पैरामीटर नाम | प्रकार | विवरण | उदाहरण |
|---|---|---|---|
| domain | स्ट्रिंग | Required. Provide one डोमेन या a comma-separated list of up to 100 डोमेनs. | example.com,example.net |
| auto_renew | पूर्णांक | Required. 1 enables और 0 disables auto-renewal fया all entries. | 1 |
प्रतिक्रिया पैरामीटर
| पैरामीटर नाम | प्रकार | विवरण |
|---|---|---|
| results | ऑब्जेक्ट[] |
Each result has domain, code, और msg.A code of 0 also returns the बूलियन auto_renew status.
|
| success_count | पूर्णांक | संख्या of successful entries, including settings already in effect. |
| fail_count | पूर्णांक | संख्या of entries that failed validation या could not be saved. |
अनुरोध उदाहरण
{
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"
}
परिणाम लौटाएँ
0 OK
सफल प्रतिक्रिया
{
"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 गलत अनुरोध
{
"code": 400,
"msg" : "Request parameter error",
"data" : []
}






