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

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v1/registrar/domains/{domain}/nameservers`
- Auth: HTTP bearer

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`: Forbidden
- `404`: The domain was not found in our system.
- `429`: TooManyRequests
- `500`: InternalServerError

## Changes

- **2026-07-14** `314022afff45`: 1 info
  - added the optional property `reason` to the response with the `401` status
- **2025-11-28** `45991e5c8b6d`: 1 info
  - added the new optional `query` request parameter `teamId`
- **2025-10-09** `50caddad4ae7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vercel/apis/vercel-api/changes/v1/registrar/domains/:domain/nameservers/patch.md)

---

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