---
title: "Enable domain transfer lock"
method: POST
path: "/{account}/registrar/domains/{domain}/transfer_lock"
tags: ["registrar transfer"]
---

# Enable domain transfer lock

`POST /{account}/registrar/domains/{domain}/transfer_lock`

Locks the domain to prevent unauthorized transfers.

## Path parameters

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

## Response `201`

Successfully locked the domain.

- object
  - `data` DomainTransferLock, required
    - `enabled` boolean, required

## Other responses

- `400` — A required parameter is missing or the request is invalid.
- `404` — The requested resource doesn't exist.

## Changes

- **2025-07-11** (v2) `06780be0ef17` — 5 info
  - the response property `data` became required for the status `201`
  - the response property `data/enabled` became required for the status `201`
  - the response property `errors` became required for the status `400`
  - the response property `message` became required for the status `400`
  - …1 more
- **2023-09-21** (v2) `8c84769c43ea` — 1 info
  - endpoint added
- **2023-07-18** (v2) `c8591dcf8c29` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/dnsimple/apis/dnsimple-api/changes/:account/registrar/domains/:domain/transfer_lock/post.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/faec8b49cc03?raw)
