Update nameservers for a domain
PATCH
https://api.vercel.com/v1/registrar/domains/{domain}/nameserversUpdate the nameservers for a domain. Pass an empty array to use Vercel's default nameservers.
Request
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",});
async function run() { await vercel.domainsRegistrar.updateDomainNameservers({ domain: "unique-formula.biz", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", requestBody: { nameservers: [ "<value 1>", ], }, });
}
run();Response
{}Errors
{ "status": "400", "code": "domain_not_registered", "message": "string"}AuthorizationbearerToken
Default authentication mechanism
204Success
400There was something wrong with the request
404The domain was not found in our system.
429TooManyRequests