Skip to main content
PUT
/
registrar
/
v1
/
contacts
/
{handle}
Update a contact
curl --request PUT \
  --url https://www.atom.com/api/registrar/v1/contacts/{handle} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Jane Smith",
  "first_name": "Jane",
  "last_name": "Smith",
  "email": "jane.smith@example.com",
  "phone": "+1.2025559876",
  "fax": null,
  "organization": "Acme Corp",
  "address": [
    "456 Oak Ave",
    "Floor 2"
  ],
  "city": "Austin",
  "state": "TX",
  "zip": "78701",
  "country": "US",
  "label": "Updated Label",
  "disclosed_fields": [
    "name"
  ]
}
'
import requests

url = "https://www.atom.com/api/registrar/v1/contacts/{handle}"

payload = {
"name": "Jane Smith",
"first_name": "Jane",
"last_name": "Smith",
"email": "jane.smith@example.com",
"phone": "+1.2025559876",
"fax": None,
"organization": "Acme Corp",
"address": ["456 Oak Ave", "Floor 2"],
"city": "Austin",
"state": "TX",
"zip": "78701",
"country": "US",
"label": "Updated Label",
"disclosed_fields": ["name"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Jane Smith',
first_name: 'Jane',
last_name: 'Smith',
email: 'jane.smith@example.com',
phone: '+1.2025559876',
fax: null,
organization: 'Acme Corp',
address: ['456 Oak Ave', 'Floor 2'],
city: 'Austin',
state: 'TX',
zip: '78701',
country: 'US',
label: 'Updated Label',
disclosed_fields: ['name']
})
};

fetch('https://www.atom.com/api/registrar/v1/contacts/{handle}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://www.atom.com/api/registrar/v1/contacts/{handle}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Jane Smith',
'first_name' => 'Jane',
'last_name' => 'Smith',
'email' => 'jane.smith@example.com',
'phone' => '+1.2025559876',
'fax' => null,
'organization' => 'Acme Corp',
'address' => [
'456 Oak Ave',
'Floor 2'
],
'city' => 'Austin',
'state' => 'TX',
'zip' => '78701',
'country' => 'US',
'label' => 'Updated Label',
'disclosed_fields' => [
'name'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://www.atom.com/api/registrar/v1/contacts/{handle}"

payload := strings.NewReader("{\n \"name\": \"Jane Smith\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane.smith@example.com\",\n \"phone\": \"+1.2025559876\",\n \"fax\": null,\n \"organization\": \"Acme Corp\",\n \"address\": [\n \"456 Oak Ave\",\n \"Floor 2\"\n ],\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zip\": \"78701\",\n \"country\": \"US\",\n \"label\": \"Updated Label\",\n \"disclosed_fields\": [\n \"name\"\n ]\n}")

req, _ := http.NewRequest("PUT", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.put("https://www.atom.com/api/registrar/v1/contacts/{handle}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Jane Smith\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane.smith@example.com\",\n \"phone\": \"+1.2025559876\",\n \"fax\": null,\n \"organization\": \"Acme Corp\",\n \"address\": [\n \"456 Oak Ave\",\n \"Floor 2\"\n ],\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zip\": \"78701\",\n \"country\": \"US\",\n \"label\": \"Updated Label\",\n \"disclosed_fields\": [\n \"name\"\n ]\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://www.atom.com/api/registrar/v1/contacts/{handle}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Jane Smith\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane.smith@example.com\",\n \"phone\": \"+1.2025559876\",\n \"fax\": null,\n \"organization\": \"Acme Corp\",\n \"address\": [\n \"456 Oak Ave\",\n \"Floor 2\"\n ],\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zip\": \"78701\",\n \"country\": \"US\",\n \"label\": \"Updated Label\",\n \"disclosed_fields\": [\n \"name\"\n ]\n}"

response = http.request(request)
puts response.read_body
{
  "success": true,
  "message": "Contact updated successfully",
  "data": {
    "handle": "ATOM-12345",
    "type": "registrant_user",
    "label": "My Business Contact",
    "name": "Jane Doe",
    "email": "jane@example.com",
    "phone": "+1.2025551234",
    "fax": null,
    "organization": "Acme Corp",
    "address": [
      "123 Main St",
      "Suite 400"
    ],
    "city": "Chicago",
    "state": "IL",
    "zip": "60601",
    "country": "US",
    "disclosed_fields": [
      "name",
      "email"
    ],
    "verified": false
  }
}
{
"success": true,
"message": "Verification email sent. Please approve the contact update via email to complete the change.",
"verification_required": true,
"data": {
"handle": "ATOM-12345",
"type": "registrant_user",
"label": "My Business Contact",
"name": "Jane Doe",
"email": "jane@example.com",
"phone": "+1.2025551234",
"fax": null,
"organization": "Acme Corp",
"address": [
"123 Main St",
"Suite 400"
],
"city": "Chicago",
"state": "IL",
"zip": "60601",
"country": "US",
"disclosed_fields": [
"name",
"email"
],
"verified": false
}
}
{
"success": false,
"error": "Bad Request",
"message": "Invalid input provided"
}
{
"success": false,
"error": "Unauthorized",
"message": "Invalid registrar API token or access has been revoked. Please request registrar API access from your dashboard."
}
{
"success": false,
"error": "Bad Request",
"message": "Invalid input provided"
}
{
"success": false,
"error": "Bad Request",
"message": "Invalid input provided"
}
{
"success": false,
"error": "Registrar Error",
"message": "<string>",
"violations": [
{}
]
}
{
"success": false,
"error": "Bad Request",
"message": "Invalid input provided"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

handle
string
required

The registrar contact handle to update (e.g. ATOM-12345 or CONTACT_1-67890)

Body

application/json

All fields are optional — only provide the fields you want to change.

name
string
Example:

"Jane Smith"

first_name
string
Example:

"Jane"

last_name
string
Example:

"Smith"

email
string<email>
Example:

"jane.smith@example.com"

phone
string
Example:

"+1.2025559876"

fax
string
Example:

null

organization
string
Example:

"Acme Corp"

address
Example:
["456 Oak Ave", "Floor 2"]
city
string
Example:

"Austin"

state
string
Example:

"TX"

zip
string
Example:

"78701"

country
string
Example:

"US"

label
string
Example:

"Updated Label"

disclosed_fields
string[]
Example:
["name"]

Response

Contact updated successfully

success
boolean
Example:

true

message
string
Example:

"Contact updated successfully"

data
object