/api/dns/nameserversCreate a nameserver group
Creates a nameserver group with its nameservers, domain matches, and distribution groups. Supply all required fields, and set primary and domains consistently: a primary group should have no domains. A 200 response returns the created nameserver group.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Nameserver group configuration. Include all fields; each nameserver entry requires ip, ns_type, and port.
A 400 is returned when the request is invalid. A 401 is returned when authentication is missing or invalid. A 403 indicates insufficient permission, and a 500 indicates an internal server error. Include name, description, nameservers, enabled, groups, primary, domains, and search_domains_enabled; name must be 1–40 characters, each domain must be 1–255 characters, and nameservers must contain 1–3 entries with ns_type set to udp.