DNS – DNS settings endpoints remove deprecated Foundation DNS boolean

Starting today, the DNS settings endpoints no longer return or accept the deprecated foundation_dns boolean for zone settings or account defaults. The rollout is expected to take seven days. Use nameservers.type: "cloudflare.advanced" to configure Advanced Nameservers.

Update clients that still read or write foundation_dns. Remove handling for the boolean and use the nameserver type instead. The zone settings JSON for /zones/{zone_id}/dns_settings is:

{
  "nameservers": {
    "type": "cloudflare.advanced"
  }
}

Cloudflare will make an equivalent change to /accounts/{account_id}/dns_settings at the same time.

PATCH requests that include foundation_dns will be rejected.

This API update does not change your Foundation DNS subscription or whether Advanced Nameservers are enabled on your zones. It does not require a zone migration.

Source: Cloudflare