> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.atom.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update domain contacts

> Assign contact handles to one or more roles on a domain — `registrant`, `admin`, `billing`, and/or `tech`. At least one role must be supplied; roles that are omitted remain unchanged.

If the registrar requires email verification (e.g. registrant change), a **202** is returned and the update is applied once the verification email is approved.

The domain must have `domain_contact_management` enabled (active, non-locked domain with Atom nameservers).



## OpenAPI

````yaml PUT /registrar/v1/domains/{domain_name}/contacts
openapi: 3.0.0
info:
  title: Atom Registrar API
  version: 1.0.0
  description: >-
    REST API for domain registration, DNS management, and domain operations.
    Authentication via Bearer token in Authorization header.
servers:
  - url: https://www.atom.com/api
    description: Production server
  - url: https://dev.atom.com/api
    description: Development server
security:
  - BearerAuth: []
paths:
  /registrar/v1/domains/{domain_name}/contacts:
    put:
      tags:
        - Contacts
      summary: Update domain contact handles
      description: >-
        Assign contact handles to one or more roles on a domain — `registrant`,
        `admin`, `billing`, and/or `tech`. At least one role must be supplied;
        roles that are omitted remain unchanged.


        If the registrar requires email verification (e.g. registrant change), a
        **202** is returned and the update is applied once the verification
        email is approved.


        The domain must have `domain_contact_management` enabled (active,
        non-locked domain with Atom nameservers).
      operationId: updateDomainContacts
      parameters:
        - name: domain_name
          in: path
          required: true
          description: Domain name (e.g. `example.com`)
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateDomainContactsRequest'
      responses:
        '200':
          description: Contacts updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateDomainContactsResponse'
        '202':
          description: >-
            Accepted — verification email sent. The update is applied once the
            user approves via email.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: >-
                      Domain contact update initiated. Please verify the update
                      via the email sent to your registered email address.
                  verification_required:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      domain_name:
                        type: string
                        example: example.com
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      security:
        - BearerAuth: []
components:
  schemas:
    UpdateDomainContactsRequest:
      type: object
      description: >-
        At least one of `registrant`, `admin`, `billing`, or `tech` must be
        provided. Omitted roles are left unchanged.
      minProperties: 1
      properties:
        registrant:
          type: string
          example: ATOM-12345
          description: >-
            Contact handle to set as the registrant. Must belong to the
            authenticated user.
        admin:
          type: string
          example: CONTACT_1-67890
          description: Contact handle to set as the administrative contact.
        billing:
          type: string
          example: CONTACT_2-67890
          description: Contact handle to set as the billing contact.
        tech:
          type: string
          example: CONTACT_3-67890
          description: Contact handle to set as the technical contact.
    UpdateDomainContactsResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
          example: Domain contacts updated successfully
        data:
          type: object
          properties:
            domain_name:
              type: string
              example: example.com
            registrant_handle:
              type: string
              example: ATOM-12345
            admin_handle:
              type: string
              example: CONTACT_1-67890
              nullable: true
            billing_handle:
              type: string
              example: CONTACT_2-67890
              nullable: true
            tech_handle:
              type: string
              example: CONTACT_3-67890
              nullable: true
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          example: Bad Request
        message:
          type: string
          example: Invalid input provided
  responses:
    BadRequest:
      description: Bad request - invalid parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    UnauthorizedError:
      description: Authentication failed - invalid or revoked API token
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                example: false
              error:
                type: string
                example: Unauthorized
              message:
                type: string
                example: >-
                  Invalid registrar API token or access has been revoked. Please
                  request registrar API access from your dashboard.
    Forbidden:
      description: Forbidden - operation not allowed for this domain
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Registrar API Bearer token. Obtain from dashboard at
        /dashboard/seller/api-access after requesting Registrar API access.

````