---
title: "Update nameservers for a domain"
method: PATCH
path: "/v1/registrar/domains/{domain}/nameservers"
tags: ["domains-registrar"]
---

# Update nameservers for a domain

`PATCH /v1/registrar/domains/{domain}/nameservers`

Update the nameservers for a domain. Pass an empty array to use Vercel's default nameservers.

## Path parameters

- `domain` string, required — A valid domain name

## Query parameters

- `teamId` string

## Request body

- object
  - `nameservers` Nameserver[], required

## Response `204`

Success

## Other responses

- `400` — There was something wrong with the request
- `401` — Unauthorized
- `403` — NotAuthorizedForScope
- `404` — The domain was not found in our system.
- `429` — TooManyRequests
- `500` — InternalServerError

---

[API](https://skmtc.net/vercel/apis/api.md) · [All operations](https://skmtc.net/vercel/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vercel/api/versions/61d1ba3f6dac/schema)
