WHOIS Privacy
Show və ya hide individual registrant fields fvə ya a suppvə yated domen. Fields omitted from the request keep their saved settings.
Content-Type
application/json
kateqoriya
domain
əməl
set_whois_privacy
Sorğu parametrləri
| Parametrin adı | Növ | Təsvir et | Nümunə |
|---|---|---|---|
| domain | Sətr | Required. A suppvə yated domen managed by the authenticated account. | example.com |
| whois_privacy | Obyekt |
Required. Use whois_privacy[field] fvə ya at least one of the fields below.
|
whois_privacy[email]=0 |
| whois_privacy.organization | Tam ədəd | Registrant Organization. 0 means Hide və 1 means Show. | 0 |
| whois_privacy.name | Tam ədəd | Registrant Ad. 0 means Hide və 1 means Show. | 0 |
| whois_privacy.address | Tam ədəd | Registrant Ünvan. 0 means Hide və 1 means Show. | 0 |
| whois_privacy.phone | Tam ədəd | Registrant Phone. 0 means Hide və 1 means Show. | 1 |
| whois_privacy.fax | Tam ədəd | Registrant Faks. 0 means Hide və 1 means Show. | 0 |
| whois_privacy.email | Tam ədəd | Registrant Email. 0 means Hide və 1 means Show. | 0 |
Cavab parametrləri
| Parametrin adı | Növ | Təsvir et |
|---|---|---|
| domain | Sətr | Domen adı. |
| whois_privacy | Obyekt | Hamısı saved registrant visibility settings. Each field uses 0 fvə ya Hide və ya 1 fvə ya Show. Unset fields are omitted. |
| whois_privacy.organization | Tam ədəd | Registrant Organization. 0 means Hide və 1 means Show. |
| whois_privacy.name | Tam ədəd | Registrant Ad. 0 means Hide və 1 means Show. |
| whois_privacy.address | Tam ədəd | Registrant Ünvan. 0 means Hide və 1 means Show. |
| whois_privacy.phone | Tam ədəd | Registrant Phone. 0 means Hide və 1 means Show. |
| whois_privacy.fax | Tam ədəd | Registrant Faks. 0 means Hide və 1 means Show. |
| whois_privacy.email | Tam ədəd | Registrant Email. 0 means Hide və 1 means Show. |
Sorgu Nümunəsi
{
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"
}
Nəticənin qayıdışı
0 OK
Uğurlu cavab
{
"code": 0,
"msg" : "success",
"data" : {
"domain" : "example.com",
"whois_privacy" : {
"organization" : 0,
"name" : 0,
"address" : 0,
"phone" : 1,
"email" : 0
}
}
}
400 Yanlış Sorğu
{
"code": 400,
"msg" : "Request parameter error",
"data" : []
}






