> ## 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.

# Bulk update DNS records

> Update all DNS records matching specific subdomain and type criteria. Updates content and optionally TTL for all matching records.



## OpenAPI

````yaml PUT /registrar/v1/domains/{domain_name}/dns/bulk-update
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}/dns/bulk-update:
    put:
      summary: Bulk update DNS records
      description: >-
        Update all DNS records matching specific subdomain and type criteria.
        Updates content and optionally TTL for all matching records.
      parameters:
        - name: domain_name
          in: path
          description: Domain name (e.g., 'example.com')
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DnsBulkUpdateRequest'
      responses:
        '200':
          description: DNS records updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkOperationResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    DnsBulkUpdateRequest:
      type: object
      required:
        - type
        - content
      properties:
        subdomain:
          type: string
          description: >-
            Subdomain to update (use '@' for root domain, omit to update all
            subdomains)
          example: www
        type:
          type: string
          example: A
          description: DNS record type to update
        content:
          type: string
          example: 192.0.2.100
          description: New content value for all matching records
        ttl:
          type: integer
          example: 7200
          description: 'Optional: new TTL value for all matching records'
    BulkOperationResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
          example: Updated 5 DNS record(s)
        data:
          type: object
          properties:
            updated_count:
              type: integer
              example: 5
              description: Number of records updated (for bulk-update)
            deleted_count:
              type: integer
              example: 3
              description: Number of records deleted (for bulk-delete)
    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.
    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.

````