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

---

[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)
