WHOIS Privacy
Show או hide individual registrant fields fאו a suppאוted דומיין. Fields omitted from the request keep their saved settings.
Content-Type
application/json
קטגוריה
domain
פעולה
set_whois_privacy
פרמטרי בקשה
| שם פרמטר | סוג | תיאור | דוגמה |
|---|---|---|---|
| domain | מחרוזת | Required. A suppאוted דומיין managed by the authenticated account. | example.com |
| whois_privacy | אובייקט |
Required. Use whois_privacy[field] fאו at least one of the fields below.
|
whois_privacy[email]=0 |
| whois_privacy.organization | מספר שלם | Registrant Organization. 0 means Hide ו 1 means Show. | 0 |
| whois_privacy.name | מספר שלם | Registrant שם. 0 means Hide ו 1 means Show. | 0 |
| whois_privacy.address | מספר שלם | Registrant כתובת. 0 means Hide ו 1 means Show. | 0 |
| whois_privacy.phone | מספר שלם | Registrant Phone. 0 means Hide ו 1 means Show. | 1 |
| whois_privacy.fax | מספר שלם | Registrant פקס. 0 means Hide ו 1 means Show. | 0 |
| whois_privacy.email | מספר שלם | Registrant אימייל. 0 means Hide ו 1 means Show. | 0 |
פרמטרי תגובה
| שם פרמטר | סוג | תיאור |
|---|---|---|
| domain | מחרוזת | שם דומיין. |
| whois_privacy | אובייקט | הכל saved registrant visibility settings. Each field uses 0 fאו Hide או 1 fאו Show. Unset fields are omitted. |
| whois_privacy.organization | מספר שלם | Registrant Organization. 0 means Hide ו 1 means Show. |
| whois_privacy.name | מספר שלם | Registrant שם. 0 means Hide ו 1 means Show. |
| whois_privacy.address | מספר שלם | Registrant כתובת. 0 means Hide ו 1 means Show. |
| whois_privacy.phone | מספר שלם | Registrant Phone. 0 means Hide ו 1 means Show. |
| whois_privacy.fax | מספר שלם | Registrant פקס. 0 means Hide ו 1 means Show. |
| whois_privacy.email | מספר שלם | Registrant אימייל. 0 means Hide ו 1 means Show. |
דוגמת בקשה
{
curl -g -X POST 'https://api.nicenic.net/v2/?category=domain&action=set_whois_privacy&domain={domain}&whois_privacy[organization]=0&whois_privacy[name]=0&whois_privacy[address]=0&whois_privacy[phone]=1&whois_privacy[email]=0'
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
תוצאת החזרה
0 OK
תגובה מוצלחת
{
"code": 0,
"msg" : "success",
"data" : {
"domain" : "example.com",
"whois_privacy" : {
"organization" : 0,
"name" : 0,
"address" : 0,
"phone" : 1,
"email" : 0
}
}
}
400 בקשה שגויה
{
"code": 400,
"msg" : "Request parameter error",
"data" : []
}






