---
title: "Enable WHOIS privacy"
method: PUT
path: "/{account}/registrar/domains/{domain}/whois_privacy"
tags: ["registrar privacy"]
---

# Enable WHOIS privacy

`PUT /{account}/registrar/domains/{domain}/whois_privacy`

Enables the WHOIS privacy for the domain.

Note that if the WHOIS privacy is not purchased for the domain, enabling WHOIS privacy will cause the service to be purchased for a period of 1 year. If WHOIS privacy was previously purchased and disabled, then calling this will enable the WHOIS privacy.

## Path parameters

- `account` integer, required
- `domain` string, required

## Response `200`

Successfully enabled whois privacy.

- object
  - `data` WhoisPrivacy, required
    - `id` integer, required
    - `domain_id` integer, required
    - `enabled` boolean, required
    - `expires_on` string, date, required — A date value formatted as ISO 8601.
    - `created_at` string, date-time, required — A date-time value, representing when the entry was created, formatted as ISO 8601.
    - `updated_at` string, date-time, required — A date-time value, representing when the entry was last updated, formatted as ISO 8601.

## Other responses

- `201` — Successfully purchased and enabled whois privacy.
- `404` — The requested resource doesn't exist.

---

[API](https://skmtc.net/dnsimple/apis/dnsimple-api.md) · [All operations](https://skmtc.net/dnsimple/apis/dnsimple-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dnsimple/dnsimple-api/revisions/270bb4f6f532/schema)
