Skip to main content
PUT
/
registrar
/
v1
/
domains
/
{domain_name}
/
records
/
{record_id}
Update DNS record
curl --request PUT \
  --url https://atom.com/api/registrar/v1/domains/{domain_name}/records/{record_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "A",
  "name": "www",
  "content": "192.0.2.2",
  "ttl": 7200,
  "comment": "<string>",
  "priority": 123,
  "weight": 123,
  "port": 123,
  "target": "<string>",
  "service": "<string>",
  "protocol": "<string>",
  "flags": 123,
  "tag": "<string>",
  "value": "<string>"
}
'
{
  "success": true,
  "message": "DNS record created successfully",
  "data": {
    "id": 123,
    "type": "A",
    "name": "@",
    "content": "192.0.2.1",
    "ttl": 3600,
    "comment": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

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')

record_id
integer
required

DNS record ID

Body

application/json
type
string
Example:

"A"

name
string
Example:

"www"

content
string
Example:

"192.0.2.2"

ttl
integer
Example:

7200

comment
string
priority
integer
weight
integer
port
integer
target
string
service
string
protocol
string
flags
integer
tag
string
value
string

Response

DNS record updated successfully

success
boolean
Example:

true

message
string
Example:

"DNS record created successfully"

data
object