---
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`

## Request

- Base URL: `https://api.dnsimple.com/v2`
- URL: `https://api.dnsimple.com/v2/{account}/registrar/domains/{domain}/whois_privacy`
- Auth: one of:
  - HTTP basic
  - HTTP bearer
- TypeScript: <https://skmtc.dev/dnsimple/apis/dnsimple-api/docs/:account/registrar/domains/:domain/whois_privacy/put.ts> (a function with typed inputs; its response is checked against the schema)

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.

## Changes

- **2025-07-11** (v2) `06780be0ef17`: 15 info
  - the response property `data` became required for the status `200`
  - the response property `data` became required for the status `201`
  - the response property `data/created_at` became required for the status `200`
  - the response property `data/created_at` became required for the status `201`
  - …11 more
- **2023-07-18** (v2) `c8591dcf8c29`: 15 breaking
  - the response property `data` became optional for the status `200`
  - the response property `data` became optional for the status `201`
  - the response property `data/created_at` became optional for the status `200`
  - the response property `data/created_at` became optional for the status `201`
  - …11 more

[Operation history](https://skmtc.dev/dnsimple/apis/dnsimple-api/changes/:account/registrar/domains/:domain/whois_privacy/put.md)

---

[API](https://skmtc.dev/dnsimple/apis/dnsimple-api.md) - [All operations](https://skmtc.dev/dnsimple/apis/dnsimple-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dnsimple/apis/dnsimple-api/revisions/2d2e7a8fb60a?raw)
