WHOIS Privacy
Show yoki hide individual registrant fields fyoki a suppyokited domain. Fields omitted from the request keep their saved settings.
Content-Type
application/json
toifa
domain
harakat
set_whois_privacy
So‘rov parametrlari
| Parametr nomi | Turi | Tavsif | Misol |
|---|---|---|---|
| domain | Satrlik | Required. A suppyokited domain managed by the authenticated account. | example.com |
| whois_privacy | Obyekt |
Required. Use whois_privacy[field] fyoki at least one of the fields below.
|
whois_privacy[email]=0 |
| whois_privacy.organization | Butun son | Registrant Organization. 0 means Hide va 1 means Show. | 0 |
| whois_privacy.name | Butun son | Registrant Ism. 0 means Hide va 1 means Show. | 0 |
| whois_privacy.address | Butun son | Registrant Manzil. 0 means Hide va 1 means Show. | 0 |
| whois_privacy.phone | Butun son | Registrant Phone. 0 means Hide va 1 means Show. | 1 |
| whois_privacy.fax | Butun son | Registrant Faks. 0 means Hide va 1 means Show. | 0 |
| whois_privacy.email | Butun son | Registrant Elektron pochta. 0 means Hide va 1 means Show. | 0 |
Javob parametrlar
| Parametr nomi | Turi | Tavsif |
|---|---|---|
| domain | Satrlik | Domen nomi. |
| whois_privacy | Obyekt | Barchasi saved registrant visibility settings. Each field uses 0 fyoki Hide yoki 1 fyoki Show. Unset fields are omitted. |
| whois_privacy.organization | Butun son | Registrant Organization. 0 means Hide va 1 means Show. |
| whois_privacy.name | Butun son | Registrant Ism. 0 means Hide va 1 means Show. |
| whois_privacy.address | Butun son | Registrant Manzil. 0 means Hide va 1 means Show. |
| whois_privacy.phone | Butun son | Registrant Phone. 0 means Hide va 1 means Show. |
| whois_privacy.fax | Butun son | Registrant Faks. 0 means Hide va 1 means Show. |
| whois_privacy.email | Butun son | Registrant Elektron pochta. 0 means Hide va 1 means Show. |
So‘rov namunasi
{
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"
}
Natijani qaytarish
0 OK
Muvaffaqiyatli javob
{
"code": 0,
"msg" : "success",
"data" : {
"domain" : "example.com",
"whois_privacy" : {
"organization" : 0,
"name" : 0,
"address" : 0,
"phone" : 1,
"email" : 0
}
}
}
400 Noto‘g‘ri so‘rov
{
"code": 400,
"msg" : "Request parameter error",
"data" : []
}






