# Update Auto Renew Preference

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/domains/update-auto-renew:
    post:
      summary: Update Auto Renew Preference
      deprecated: false
      description: >-
        Use this endpoint to enable or disable auto-renewal for active paid
        domains in the authenticated user's workspace.


        Note: High-reputation domains and pre-warmed domains are not eligible
        for renewal.
      tags:
        - domains
      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: false
          example: workspace_id
          schema:
            type: string
        - name: x-service-provider
          in: header
          description: ''
          required: false
          example: GOOGLE
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                domainIds:
                  type: array
                  items:
                    type: string
                autoRenew:
                  type: boolean
                contains:
                  type: string
                tagIds:
                  type: array
                  items:
                    type: string
              required:
                - domainIds
                - autoRenew
              x-apidog-orders:
                - domainIds
                - autoRenew
                - contains
                - tagIds
            example:
              domainIds:
                - uuid-1
                - uuid-2
              autoRenew: true
              contains: example
              tagIds:
                - tag-uuid-1
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      updatedCount:
                        type: integer
                      domainIds:
                        type: array
                        items:
                          type: string
                    required:
                      - updatedCount
                      - domainIds
                    x-apidog-orders:
                      - updatedCount
                      - domainIds
                required:
                  - status
                  - message
                  - data
                x-apidog-orders:
                  - status
                  - message
                  - data
              example:
                status: 200
                message: Auto renewal status updated successfully
                data:
                  updatedCount: 3
                  domainIds:
                    - domain-uuid-1
                    - domain-uuid-2
                    - domain-uuid-3
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: domains
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-33617237-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
