---
title: "Update a DNS Zone"
method: PUT
path: "/workspace/dns/zones/{zone_id}"
tags: ["DNS - Zones"]
---

# Update a DNS Zone

`PUT /workspace/dns/zones/{zone_id}`

Update an existing a DNS Zone. This replaces the entire DNS Zone with the new data provided.

## Path parameters

- `zone_id` integer, required

## Request body

- UpdateZoneRequest
  - `name` string, required
  - `active` boolean, required

## Response `200`

DNS zone updated successfully.

- ZoneResponse
  - `state` string
  - `data` Zone, required
    - `id` integer, required
    - `name` string, required
    - `domain` string, required
    - `active` boolean, required
    - `nameservers` string[], required
    - `product_version` string, required

## Other responses

- `400` — Validation Error
- `401` — Authentication Failed
- `403` — Permission Denied
- `404` — Not Found
- `405` — Method Not Allowed
- `406` — Not Acceptable
- `429` — Throttled
- `500` — Internal Server Error

---

[API](https://skmtc.dev/azion/apis/azion-api.md) · [All operations](https://skmtc.dev/azion/apis/azion-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azion/azion-api/revisions/bb3250697218/schema)
