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.
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
- 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.
- Make readers accept the documented current shape without requiring the retired field. Keep an unknown response separate from a confirmed configuration choice.
- Remove the old field from outgoing settings requests. Build the smallest authorised change for the relevant resource and preserve settings outside its scope.
- Review stored configuration and old job messages before replaying them. A fixed interactive client does not establish that queued automation uses the same serializer.
- 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
| Case | Expected evidence | Hold when |
|---|---|---|
| Reader receives a current response without foundation_dns | It 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 update | The zone identifier, intended type and returned state agree. | The client substitutes account defaults for the zone’s recorded state. |
| Account-default update | The 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 record | The 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 uncertain | The 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
- DNS settings endpoints remove deprecated Foundation DNS boolean — Cloudflare · 2026-11-23
- Cloudflare API: DNS settings — Cloudflare