# Enable Whois Privacy (deprecated) Enables WHOIS privacy protection on a domain. This endpoint is deprecated in favor of the new UpdateDomain API. This will be removed in a future release. Endpoint: POST /core/v1/domains/{domainName}:enableWhoisPrivacy Version: 1.3.1 Security: BasicAuth ## Path parameters: - `domainName` (string, required) DomainName is the domain name to enable whoisprivacy for. ## Header parameters: - `Content-Type` (string, required) Required Content-Type Header for POST requests. Enum: "application/json" ## Response 200 fields (application/json): - `domainName` (string) The punycode-encoded value of the domain name. Example: "example.com" - `createDate` (string) The date and time when the domain was created at the registry. Example: "2023-01-15T14:30:00Z" - `expireDate` (string) The date and time when the domain will expire. Example: "2025-01-15T14:30:00Z" - `autorenewEnabled` (boolean) Indicates whether the domain is set to renew automatically before expiration. Example: true - `locked` (boolean) Indicates if the domain is locked, preventing transfers to another registrar. Example: true - `privacyEnabled` (boolean) Indicates if Whois Privacy is enabled for this domain. Example: true - `contacts` (object) Contacts stores the contact information for the roles related to domains. - `contacts.admin` (object) Contact contains all relevant contact data for a domain registrant. - `contacts.admin.firstName` (string, required) First name of the contact. Example: "John" - `contacts.admin.lastName` (string, required) Last name of the contact. Example: "Doe" - `contacts.admin.companyName` (string,null) Company name of the contact. Leave blank if the contact is an individual, as some registries may assume it is a corporate entity otherwise. Example: "Example Inc." - `contacts.admin.address1` (string, required) The first line of the contact's address. Example: "123 Main Street" - `contacts.admin.address2` (string,null) The second line of the contact's address (optional). Example: "Suite 400" - `contacts.admin.city` (string, required) City of the contact's address. Example: "New York" - `contacts.admin.state` (string, required) State or Province of the contact's address. Example: "NY" - `contacts.admin.zip` (string, required) ZIP or Postal Code of the contact's address. Example: "10001" - `contacts.admin.country` (string, required) Country code for the contact's address. Must be an ISO 3166-1 alpha-2 country code. Example: "US" - `contacts.admin.email` (string, required) Email address of the contact. Must be a valid email format. The validation is performed against the syntax in [RFC 822](https://datatracker.ietf.org/doc/html/rfc822) Example: "john.doe@example.com" - `contacts.admin.phone` (string, required) Phone number of the contact. Should follow the E.164 international format: "+[country code][number]". Example: "+15551234567" - `contacts.admin.fax` (string,null) Fax number of the contact. Should follow the E.164 international format: "+[country code][number]". Example: "+15557654321" - `contacts.billing` (object) Contact contains all relevant contact data for a domain registrant. - `contacts.registrant` (object) Contact contains all relevant contact data for a domain registrant. - `contacts.registrant.companyName` (string,null) Company name of the contact. Leave blank if the contact is an individual. Please be advised that ICANN policy links the "Company Name" field (Organization) in your domain's contact details to its legal ownership. If this field contains information, the listed organization is considered the legal "Registered Name Holder" (domain owner). Example: "Example Inc." - `contacts.tech` (object) Contact contains all relevant contact data for a domain registrant. - `nameservers` (array) The list of nameservers assigned to this domain. If unspecified, it defaults to the account's default nameservers. Example: ["ns1.example.com","ns2.example.com"] - `renewalPrice` (number) The cost to renew the domain. This may be required for the RenewDomain operation. Example: 12.99 ## Response 400 fields (application/json): - `message` (string) A human-readable message providing more details about the error Example: "Bad Request" - `details` (string,null) Additional context or information about the error Example: "'domainName' cannot be null" ## Response 401 fields (application/json): - `message` (string, required) A human-readable message providing more details about the error Example: "Unauthorized" ## Response 403 fields (application/json): - `message` (string, required) A human-readable message providing more details about the error Example: "Permission denied" - `details` (string,null) Additional context or information about the error Example: "Failed authentication" ## Response 404 fields (application/json): - `message` (string, required) A human-readable message providing more details about the error Example: "Not Found" - `details` (string,null) Additional context or information about the error Example: "The requested domain does not exist." ## Response 415 fields (application/json): - `message` (string, required) A human-readable message providing more details about the error Example: "The 'Content-Type' header must be 'application/json' for this request." ## Response 429 fields (application/json): - `message` (string) A human-readable message providing more details about the error Example: "Rate Limit Exceeded" ## Response 500 fields (application/json): - `message` (string, required) A human-readable message providing more details about the error. Example: "Internal Server Error" - `details` (string,null) Additional context or information about the error. Example: "Something went wrong."