Skip to main content

Create a DNS Zone (deprecated)

POST/v2/dns-zones/
API version
v2
Request method
POST
Operation ID
dns-create-dns-zone

This operation is deprecated. Use POST v2/projects/{projectId}/dns-zones instead, which creates the zone for a domain (root or subzone) and guards root zones behind a verified ingress.

Request​

Responses​

Format
application/json
Description

The ID of the created DNSZone.

  • idstring (uuid)
    required

Usage examples​

$ curl \
--fail \
--location \
-X POST \
-d '{"name":"string","parentZoneId":"f0f86186-0a5a-45b2-aa33-502777496347"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/dns-zones