WHOIS Privacy
Show o hide individual registrant fields fo a suppoted domini. Fields omitted from the request keep their saved settings.
Content-Type
application/json
categoria
domain
acció
set_whois_privacy
Paràmetres de la sol·licitud
| Nom del paràmetre | Tipus | Descripció | Exemple |
|---|---|---|---|
| domain | Text | Required. A suppoted domini managed by the authenticated account. | example.com |
| whois_privacy | Objecte |
Required. Use whois_privacy[field] fo at least one of the fields below.
|
whois_privacy[email]=0 |
| whois_privacy.organization | Enter | Registrant Organization. 0 means Hide i 1 means Show. | 0 |
| whois_privacy.name | Enter | Registrant Nom. 0 means Hide i 1 means Show. | 0 |
| whois_privacy.address | Enter | Registrant Adreça. 0 means Hide i 1 means Show. | 0 |
| whois_privacy.phone | Enter | Registrant Phone. 0 means Hide i 1 means Show. | 1 |
| whois_privacy.fax | Enter | Registrant Fax. 0 means Hide i 1 means Show. | 0 |
| whois_privacy.email | Enter | Registrant Correu electrònic. 0 means Hide i 1 means Show. | 0 |
Paràmetres de resposta
| Nom del paràmetre | Tipus | Descripció |
|---|---|---|
| domain | Text | Nom de domini. |
| whois_privacy | Objecte | Tots saved registrant visibility settings. Each field uses 0 fo Hide o 1 fo Show. Unset fields are omitted. |
| whois_privacy.organization | Enter | Registrant Organization. 0 means Hide i 1 means Show. |
| whois_privacy.name | Enter | Registrant Nom. 0 means Hide i 1 means Show. |
| whois_privacy.address | Enter | Registrant Adreça. 0 means Hide i 1 means Show. |
| whois_privacy.phone | Enter | Registrant Phone. 0 means Hide i 1 means Show. |
| whois_privacy.fax | Enter | Registrant Fax. 0 means Hide i 1 means Show. |
| whois_privacy.email | Enter | Registrant Correu electrònic. 0 means Hide i 1 means Show. |
Exemple de sol·licitud
{
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"
}
Resultat retornat
0 OK
Resposta correcta
{
"code": 0,
"msg" : "success",
"data" : {
"domain" : "example.com",
"whois_privacy" : {
"organization" : 0,
"name" : 0,
"address" : 0,
"phone" : 1,
"email" : 0
}
}
}
400 Sol·licitud incorrecta
{
"code": 400,
"msg" : "Request parameter error",
"data" : []
}






