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

# [DNS Settings] Update DNS zone settings

> Update the configuration settings for a DNS zone. Changes are applied to both the local database and synchronized with the DNS provider. Available settings include SSL/TLS mode, HTTPS enforcement, cache levels, security settings, and performance optimizations.



## OpenAPI

````yaml https://api.onetsolutions.net/schema put /v1/organizations/{organization_id}/projects/{project_id}/dns-zones/{id}/settings
openapi: 3.0.3
info:
  title: OnetSolutions API
  version: v1 (v1)
  description: >

    ## Overview


    The OnetSolutions API provides programmatic access to manage your cloud
    infrastructure, domains, and web hosting services.


    ## Authentication


    All API requests require authentication using one of the following methods:


    - **JWT Token**: Obtain a token via login endpoints and include it in the
    `Authorization: Bearer <token>` header

    - **API Key**: Generate an API key from your account settings and use it as
    `Authorization: Bearer sk-onetsolutions-...`


    ## Rate Limiting


    API requests are rate-limited to ensure fair usage:

    - **Standard**: 1000 requests per minute

    - **Burst**: 100 requests per second


    ## Pagination


    List endpoints return paginated results. Use `page` and `page_size` query
    parameters.


    ## Error Handling


    The API uses standard HTTP status codes:

    - `200` Success

    - `201` Created

    - `400` Bad Request

    - `401` Unauthorized

    - `403` Forbidden

    - `404` Not Found

    - `429` Too Many Requests
servers:
  - url: https://api.onetsolutions.net
    description: Production
security: []
tags:
  - name: Authentication
    description: >-
      Login, passwordless authentication, MFA, OAuth providers, and token
      management.
  - name: Organizations
    description: >-
      Organization management, members, roles, modules, audit logs, and
      notification settings.
  - name: Projects
    description: Project management, team members, and project-scoped resources.
  - name: Compute
    description: >-
      Cloud instances, volumes, snapshots, backups, VPCs, firewalls, SSH keys,
      uptime monitors, and instance tasks.
  - name: Domains
    description: >-
      Domain availability, registration, transfers, DNS zones, DNS records, and
      TLD information.
  - name: Web Hosting
    description: >-
      cPanel-based web hosting, emails, databases, subdomains, FTP accounts,
      addon domains, and SSL certificates.
paths:
  /v1/organizations/{organization_id}/projects/{project_id}/dns-zones/{id}/settings:
    put:
      tags:
        - Domains
      summary: '[DNS Settings] Update DNS zone settings'
      description: >-
        Update the configuration settings for a DNS zone. Changes are applied to
        both the local database and synchronized with the DNS provider.
        Available settings include SSL/TLS mode, HTTPS enforcement, cache
        levels, security settings, and performance optimizations.
      operationId: update_dns_zone_settings
      parameters:
        - in: path
          name: id
          schema:
            type: string
          description: The unique identifier (UUID) of the DNS zone
          required: true
        - in: path
          name: organization_id
          schema:
            type: string
            format: uuid
          required: true
        - in: path
          name: project_id
          schema:
            type: string
            format: uuid
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DNSZoneSettingsUpdate'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DNSZoneSettings'
          description: DNS zone settings updated successfully
        '400':
          description: Invalid settings values or DNS zone not provisioned
        '401':
          description: Authentication credentials were not provided or are invalid
        '403':
          description: You do not have permission to update this DNS zone
        '404':
          description: DNS zone not found or does not belong to the specified project
        '500':
          description: Failed to update settings on the DNS provider
      security:
        - BearerAuth: []
components:
  schemas:
    DNSZoneSettingsUpdate:
      type: object
      properties:
        ssl_mode:
          enum:
            - 'off'
            - flexible
            - full
            - full_strict
          type: string
          description: |-
            * `off` - off
            * `flexible` - flexible
            * `full` - full
            * `full_strict` - full strict
          x-spec-enum-id: 0bf63c12f5f69a3c
        always_use_https:
          type: boolean
        min_tls_version:
          enum:
            - '1.0'
            - '1.1'
            - '1.2'
            - '1.3'
          type: string
          description: |-
            * `1.0` - 1.0
            * `1.1` - 1.1
            * `1.2` - 1.2
            * `1.3` - 1.3
          x-spec-enum-id: 6c62bd2a3ae2acd2
        automatic_https_rewrites:
          type: boolean
        cache_level:
          enum:
            - bypass
            - no_query_string
            - ignore_query_string
            - standard
            - aggressive
          type: string
          description: |-
            * `bypass` - bypass
            * `no_query_string` - no query string
            * `ignore_query_string` - ignore query string
            * `standard` - standard
            * `aggressive` - aggressive
          x-spec-enum-id: 83086031b156753d
        browser_cache_ttl:
          type: integer
          maximum: 31536000
          minimum: 0
        development_mode:
          type: boolean
        security_level:
          enum:
            - essentially_off
            - low
            - medium
            - high
            - under_attack
          type: string
          description: |-
            * `essentially_off` - essentially off
            * `low` - low
            * `medium` - medium
            * `high` - high
            * `under_attack` - under attack
          x-spec-enum-id: 16cc7b4f4e43a0c7
        rocket_loader:
          type: boolean
        early_hints:
          type: boolean
        minify_js:
          type: boolean
        minify_css:
          type: boolean
        minify_html:
          type: boolean
    DNSZoneSettings:
      type: object
      properties:
        ssl_mode:
          enum:
            - 'off'
            - flexible
            - full
            - full_strict
          type: string
          description: |-
            * `off` - off
            * `flexible` - flexible
            * `full` - full
            * `full_strict` - full strict
          x-spec-enum-id: 0bf63c12f5f69a3c
        always_use_https:
          type: boolean
        min_tls_version:
          enum:
            - '1.0'
            - '1.1'
            - '1.2'
            - '1.3'
          type: string
          description: |-
            * `1.0` - 1.0
            * `1.1` - 1.1
            * `1.2` - 1.2
            * `1.3` - 1.3
          x-spec-enum-id: 6c62bd2a3ae2acd2
        automatic_https_rewrites:
          type: boolean
        cache_level:
          enum:
            - bypass
            - no_query_string
            - ignore_query_string
            - standard
            - aggressive
          type: string
          description: |-
            * `bypass` - bypass
            * `no_query_string` - no query string
            * `ignore_query_string` - ignore query string
            * `standard` - standard
            * `aggressive` - aggressive
          x-spec-enum-id: 83086031b156753d
        browser_cache_ttl:
          type: integer
          maximum: 4294967295
          minimum: 0
          format: int64
        development_mode:
          type: boolean
        security_level:
          enum:
            - essentially_off
            - low
            - medium
            - high
            - under_attack
          type: string
          description: |-
            * `essentially_off` - essentially off
            * `low` - low
            * `medium` - medium
            * `high` - high
            * `under_attack` - under attack
          x-spec-enum-id: 16cc7b4f4e43a0c7
        rocket_loader:
          type: boolean
        early_hints:
          type: boolean
        minify_js:
          type: boolean
        minify_css:
          type: boolean
        minify_html:
          type: boolean
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or API Key
      description: >-
        Use `Authorization: Bearer <token>` header. Token can be a JWT token or
        an API key (format: `sk-onetsolutions-...`).

````