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" : []
}






