---
title: "Point a purchased domain at custom nameservers."
method: PUT
path: "/v1/domain-purchases/{id}/nameservers"
tags: ["Domain purchases"]
---

# Point a purchased domain at custom nameservers.

`PUT /v1/domain-purchases/{id}/nameservers`

## Request

- Base URL: `https://api.domainee.dev`
- URL: `https://api.domainee.dev/v1/domain-purchases/{id}/nameservers`
- Auth: HTTP bearer

Delegating away from the registrar's nameservers makes the DNS-record endpoints inoperative for that domain.

## Request body

- object
  - `nameservers` string[], required

## Response `200`

The nameservers now on file.

- object
  - `hostname` string
  - `nameservers` string[]

## Other responses

- `400`: The request body or query failed validation.
- `401`: Missing, malformed, revoked, or expired Bearer token.
- `404`: No such object in this workspace.

---

[API](https://skmtc.dev/domainee/apis/domainee-api.md) · [All operations](https://skmtc.dev/domainee/apis/domainee-api/llms.txt) · [OpenAPI document](https://skmtc.dev/domainee/apis/domainee-api/revisions/756d54434372?raw)
