---
title: "Replaces the existing name servers on the domain."
method: PUT
path: "/v2/customers/{customerId}/domains/{domain}/nameServers"
tags: ["Domains"]
---

# Replaces the existing name servers on the domain.

`PUT /v2/customers/{customerId}/domains/{domain}/nameServers`

## Path parameters

- `customerId` string, required
- `domain` string, required

## Headers

- `X-Request-Id` string

## Request body

- DomainNameServerUpdateV2
  - `nameServers` string[] — Fully-qualified domain names for name servers to associate with the domain

## Response `202`

Request Accepted. You may use GET /v2/customers/{customerId}/domains/{domain}/actions/DOMAIN_UPDATE_NAME_SERVERS to poll status

## Other responses

- `400` — Authentication info not sent or invalid
- `401` — Request was malformed
- `403` — Authenticated user is not allowed access
- `404` — The domain does not exist
- `409` — There is already a similar action processing
- `422` — Request body doesn't fulfill schema, see details in `fields`
- `429` — Too many requests received within interval
- `500` — Internal server error

---

[API](https://skmtc.net/godaddy/apis/domains-api.md) · [All operations](https://skmtc.net/godaddy/apis/domains-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/godaddy/domains-api/revisions/475bd0561c3c/schema)
