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

# Update Domains

> Update an existing Domain



## OpenAPI

````yaml put /domains/{id}
openapi: 3.0.2
info:
  title: DeliveryKey API Specification
  description: API documentation for DeliveryKey endpoints
  version: v1
  x-logo:
    url: http://app.deliverykey.local/images/deliveryRoundDocs.png
    backgroundColor: '#F4F4F6'
    padding: 5px
    altText: DeliveryKey Logo
servers:
  - url: https://api.deliverykey.com/v1
security: []
tags:
  - name: Account
    description: Current Account
  - name: Domain
    description: Domains
    x-displayName: Domain
  - name: Template
    description: Templates
    x-displayName: Template
  - name: Webhook
    description: Webhooks
    x-displayName: Webhook
  - name: Email
    description: Emails
    x-displayName: Email
paths:
  /domains/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        example: ae8598a9-bd74-4d23-954a-d2b671b381ae
    put:
      tags:
        - Domain
      summary: Update Domains
      description: Update an existing Domain
      operationId: domains.update
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Domain'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Domain'
        '422':
          $ref: '#/components/responses/errors.422'
        default:
          $ref: '#/components/responses/errors.404'
components:
  schemas:
    Domain:
      required:
        - domain
      properties:
        id:
          description: UUID of the domain in the system
          format: uuid
          type: string
          readOnly: true
          example: 27c6e6e1-0025-4c6e-843f-b2872985a28c
        domain:
          type: string
          example: mail.contoso.com
        active:
          type: boolean
        track_opens:
          default: false
          type: boolean
        track_clicks:
          default: false
          type: boolean
        created_at:
          description: The date the subscriber was created
          format: date-time
          type: string
          example: '2022-10-12T18:57:23.000000Z'
        emails_sent:
          type: number
          readOnly: true
        emails_received:
          type: number
          readOnly: true
  responses:
    errors.422:
      description: Unprocessable Entity
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                description: A description of all errors
                type: string
                example: The name must be a string.
              fields:
                description: Key Map of fields with array of errors
                type: object
                example:
                  name:
                    - The team name must be a string.
                    - The team name must be at least 1 characters.
    errors.404:
      description: Not Found

````