# Update Domain Renewal Settings

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/workspaces/update-domain-renewal-settings:
    post:
      summary: Update Domain Renewal Settings
      deprecated: false
      description: >-
        Use this endpoint to update the domain auto-renewal settings for the
        authenticated user's workspace. Pass domainRenewalSettings as true to
        enable auto-renewal or false to disable it for all domains in the
        workspace.


        Note: High-reputation domains and pre-warmed domains are not eligible
        for renewal through this endpoint.
      tags:
        - workspaces
      parameters:
        - name: x-auth-zapmail
          in: header
          description: ''
          required: true
          example: YOUR_API_KEY
          schema:
            type: string
        - name: x-workspace-key
          in: header
          description: ''
          required: true
          example: workspace_id
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                domainRenewalSettings:
                  type: boolean
                  description: >
                    Set to true to enable auto-renewal or false to disable it
                    for all domains in the workspace
              x-apidog-orders:
                - domainRenewalSettings
              required:
                - domainRenewalSettings
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      domainRenewalSettings:
                        type: boolean
                      updatedCount:
                        type: integer
                    required:
                      - domainRenewalSettings
                      - updatedCount
                    x-apidog-orders:
                      - domainRenewalSettings
                      - updatedCount
                required:
                  - status
                  - message
                  - data
                x-apidog-orders:
                  - status
                  - message
                  - data
              example:
                status: 200
                message: Domain renewal settings updated successfully
                data:
                  domainRenewalSettings: true
                  updatedCount: 5
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: workspaces
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-33611068-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
