---
title: "Toggle DNSSEC"
method: PATCH
path: "/dns/v2/zones/{name}/dnssec"
tags: ["DNSSEC"]
---

# Toggle DNSSEC

`PATCH /dns/v2/zones/{name}/dnssec`

Enable or disable DNSSEC for a DNS zone.

## Path parameters

- `name` string, required

## Request body

- ToggleDNSSECRequestBody
  - `enabled` boolean

## Response `200`

ToggleDNSSECResponse

- ToggleDNSSECResponse
  - `algorithm` string — Specifies the algorithm used for the key.
  - `digest` string — Represents the hashed value of the DS record.
  - `digest_algorithm` string — Specifies the algorithm used to generate the digest.
  - `digest_type` string — Specifies the type of the digest algorithm used.
  - `ds` string — Represents the complete DS record.
  - `flags` integer — Represents the flag for DNSSEC record.
  - `key_tag` integer — Represents the identifier of the DNSKEY record.
  - `key_type` string — Specifies the type of the key used in the algorithm.
  - `message` string
  - `public_key` string — Represents the public key used in the DS record.
  - `uuid` string

## Other responses

- `400` — Error message response

---

[API](https://skmtc.dev/g-core/apis/gcore-openapi.md) · [All operations](https://skmtc.dev/g-core/apis/gcore-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/g-core/gcore-openapi/revisions/09e652815095/schema)
