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

# Update Domain

> Change the Return-Path subdomain. The records move with it, so the
domain goes back to waiting on DNS for them.



## OpenAPI

````yaml /openapi/openapi-v1.json put /v1/domains/{domain_id}
openapi: 3.1.0
info:
  title: SendFlit API
  version: 1.0.0
  description: Public v1 REST API for sending and managing transactional email.
servers:
  - url: https://api.sendflit.com
security: []
paths:
  /v1/domains/{domain_id}:
    put:
      summary: Update Domain
      description: |-
        Change the Return-Path subdomain. The records move with it, so the
        domain goes back to waiting on DNS for them.
      operationId: update_domain_v1_domains__domain_id__put
      parameters:
        - name: domain_id
          in: path
          required: true
          schema:
            type: string
            title: Domain Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DomainPatch'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    DomainPatch:
      properties:
        return_path:
          type: string
          title: Return Path
      type: object
      required:
        - return_path
      title: DomainPatch
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.