All articles

API integration

Retire foundation_dns in the client, preserve the intended DNS settings

Update the client’s request and response models before treating a rejected DNS-settings write as a hosting problem. Establish the intended nameserver type for each resource, remove the retired boolean and verify the returned state. A field migration should have an explicit boundary around what it is allowed to change.

KIURO Editorial · Published: · Reviewed:

Cloudflare’s 23 November 2026 notice removes foundation_dns from zone settings and account defaults, with a rollout expected to take seven days. PATCH requests containing it are rejected. The replacement representation for Advanced Nameservers is nameservers.type: "cloudflare.advanced". The notice explicitly says this changes neither Foundation DNS subscriptions nor whether Advanced Nameservers are enabled, and requires no zone migration. An expected rollout duration is not an observation of a particular account. (Cloudflare)

Separate the two resource contracts

The API reference provides GET and PATCH methods for /zones/{zone_id}/dns_settings and /accounts/{account_id}/dns_settings. Zone models expose nameservers directly. Account models put new-zone defaults inside zone_defaults, including zone_defaults.nameservers. The documented type choices differ between these resources: do not assume that a zone response and an account-default response have interchangeable schemas. (Cloudflare)

Start the migration inventory with two rows per client if it touches both resources. Record the account or zone identifier, what the client reads, what it writes and who authorises that scope. For an agency maintaining several Swiss clients, retain the client-to-account mapping alongside the change record. A passing fixture for one account should not become permission to alter another.

Choose the intended configuration before producing a payload. A string containing “advanced” is a configuration choice, not a universal replacement for every old boolean value. If the existing state is unclear, hold that resource for review. The migration is easier to assess when its acceptance condition is stated as “this intended nameserver type remains in effect” rather than “all clients emit the new example”.

Change serializers and readers together

  1. Find the old field in request builders, response models, generated clients, stored fixtures, validation rules and retry paths. Mark whether each occurrence belongs to an account default or a zone.
  2. Make readers accept the documented current shape without requiring the retired field. Keep an unknown response separate from a confirmed configuration choice.
  3. Remove the old field from outgoing settings requests. Build the smallest authorised change for the relevant resource and preserve settings outside its scope.
  4. Review stored configuration and old job messages before replaying them. A fixed interactive client does not establish that queued automation uses the same serializer.
  5. Compare the returned settings with the agreed before/after record. Retain any unexpected difference for investigation rather than silently accepting the request’s success.

This is our proposed migration sequence, not a record of changes to a Cloudflare account. In particular, the response should not simply be written back as a request. Design a request from the update contract and the authorised intent; keep response-only observations and unrelated settings out of the change.

Use cases that expose a false migration

Original acceptance cases for an authorised non-production fixture. No requests have been executed for this article.
CaseExpected evidenceHold when
Reader receives a current response without foundation_dnsIt can identify the intended settings from the current resource shape.It treats an absent retired field as an instruction to choose another type.
Existing-zone updateThe zone identifier, intended type and returned state agree.The client substitutes account defaults for the zone’s recorded state.
Account-default updateThe request scope and new-zone defaults are identified explicitly.A default is reported as proof of every existing zone’s configuration.
Unrelated setting present in the before recordThe scoped before/after comparison explains whether it changed.A setting outside the authorised migration changes without explanation.
Legacy request is rejected or an outcome is uncertainThe original request and observed response remain available for reconciliation.A retry changes the service configuration merely to obtain success.

Illustrative handover: an agency’s provisioning tool reads account defaults when preparing a new client zone, while a maintenance tool reads the existing zone. Both refer to the same Cloudflare account, but the agency should accept them independently. Its record should identify the intended default for future creation and the intended state of the named existing zone. Neither tool’s output substitutes for the other’s evidence.

Handle failure without expanding the change

If an old request is rejected, first identify the serializer and its exact payload. Do not turn error recovery into an automatic choice of nameserver type. If a write has an uncertain outcome, inspect the current authorised resource before retrying. Record what was intended, what was observed and what remains unknown; then decide whether a corrected write is still needed.

For the broader distinction between omitting a field and asking to clear it, use Missing, null and empty are different API update decisions. This Cloudflare change needs its own resource-specific mapping; a generic PATCH convention does not supply that mapping.

Close with a bounded handover

Keep the service owner and implementation owner separate in the budget. This field change does not establish a new subscription, free upgrade or a requirement to pay for moving a zone. Any service purchase or change of DNS arrangement needs its own decision. The Cloudflare notice is an API change announcement, not a licence grant for a self-hosted product. (Cloudflare)

The deliverable should name the client version, resources checked, retained evidence and any unresolved state. Leave it at that scope. A schema correction cannot by itself establish DNS resolution, account entitlement, service availability in Switzerland or the location where data is processed. Choose a separate operational check if the project needs those answers.

Sources

Privacy & analytics

With your permission, Kiuro uses Google Analytics 4 to understand page visits and interactions such as navigation between pages, reading depth, project views, contact-link clicks and starting or successfully submitting a form. Google also processes browser, device and approximate location information. The provider is Google Ireland Limited (Ireland); processing may also take place at Google LLC in the United States.

We do not send your name, email address or message content. Advertising storage, advertising personalisation and Google signals are disabled. Google Analytics is not loaded before you allow it.

After consent, a temporary record in this tab is valid for 30 seconds and consumed when the next page loads. Your choice is saved on this browser for six months. Analytics cookies are configured to expire after six months. You can change your choice here at any time; rejecting stops measurement and removes this website’s Analytics cookies.

Your light/dark and motion preferences are stored separately on this device so the interface remembers your choices. Contact: hello@kiuro.ch.