Skip to main content
PUT
/
registrar
/
v1
/
domains
/
{domain_name}
/
nameservers
Update domain nameservers
curl --request PUT \
  --url https://atom.com/api/registrar/v1/domains/{domain_name}/nameservers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "custom",
  "nameservers": [
    "ns1.example.com",
    "ns2.example.com"
  ]
}
'
{
  "success": true,
  "data": {
    "domain_name": "example.com",
    "nameservers": [
      "ns1.atom.com",
      "ns2.atom.com"
    ],
    "type": "atom"
  }
}

Authorizations

Authorization
string
header
required

Registrar API Bearer token. Obtain from dashboard at /dashboard/seller/api-access after requesting Registrar API access.

Path Parameters

domain_name
string
required

Domain name (e.g., 'example.com')

Body

application/json
type
enum<string>
required

Nameserver type: 'atom' uses Atom nameservers, 'parking' uses parking nameservers, 'custom' requires nameservers array

Available options:
atom,
parking,
custom
Example:

"custom"

nameservers
string[]

Required if type is 'custom'. Array of nameserver hostnames.

Example:
["ns1.example.com", "ns2.example.com"]

Response

Nameservers updated successfully

success
boolean
Example:

true

data
object