Canonical: https://weaveos.com/reference/cloudflare/batch-dns-record-changes

1. [Software capabilities](https://weaveos.com/reference)
2. /[Cloudflare](https://weaveos.com/reference/cloudflare)
3. /Apply DNS record changes in a batch

[![](https://weaveos.com/reference/logos/cloudflare.svg)Cloudflare](https://weaveos.com/reference/cloudflare)

# Apply DNS record changes in a batch

Send multiple record changes in one batch request. Cloudflare applies database changes in one transaction, then propagates each record change separately.

Documentation reviewed November 26, 2026 · 2 methods with sources

## Ways to do it

1. [1API: POST /zones/{zone\_id}/dns\_records/batch](https://weaveos.com/reference/cloudflare/batch-dns-record-changes#method-1)
2. [2SDK: client.dns.records.batch()](https://weaveos.com/reference/cloudflare/batch-dns-record-changes#method-2)

API

### POST /zones/{zone\_id}/dns\_records/batch

Send multiple changes to the records in one zone.

[Read source: Cloudflare API: Batch DNS Records](https://developers.cloudflare.com/api/resources/dns/subresources/records/methods/batch/)

- Requirements

  A zone ID, an API token with DNS Write when using token auth, and a JSON body. Include an id on each delete, patch, or replace entry.

- Limitations

  Cloudflare applies deletes, patches, replacements, and creates in that order. The database transaction is atomic. Changes propagate to distributed storage separately.

SDK

### client.dns.records.batch()

Call client.dns.records.batch with the zone and the changes to apply.

[Read source: Generated Cloudflare TypeScript DNS method: POST /zones/{zone\_id}/dns\_records/batch](https://github.com/cloudflare/cloudflare-typescript/blob/0eb9ef0ea40c1fe38e4b19be92f41bd7466bc1d6/src/resources/dns/api.md#L70)

- Requirements

  An authenticated Cloudflare TypeScript client, zone\_id, and the applicable deletes, patches, puts, or posts arrays. Delete, patch, and put entries require an id.

- Limitations

  The SDK uses the same operation order and separate propagation as the API.

[Previous Cloudflare taskCreate a DNS record](https://weaveos.com/reference/cloudflare/create-dns-record) [Next Cloudflare task Import DNS records from a BIND zone file](https://weaveos.com/reference/cloudflare/import-dns-zone-file)

## More from Cloudflare

[View all 8 Cloudflare tasks](https://weaveos.com/reference/cloudflare)

- ### [List DNS records in a Cloudflare zone](https://weaveos.com/reference/cloudflare/list-zone-dns-records)

  Use the DNS Records API or Cloudflare TypeScript SDK to retrieve a zone’s records. The DNS Records page lets you inspect a record while working in the dashboard.

  API, SDK, Interface

- ### [Tail Cloudflare Worker logs](https://weaveos.com/reference/cloudflare/tail-worker-logs)

  Use wrangler tail to see incoming Worker requests and errors in your terminal. Use the dashboard’s Live view when you want to inspect the same stream in a browser.

  CLI, Interface

- ### [Find a Cloudflare zone ID](https://weaveos.com/reference/cloudflare/find-zone-id)

  Filter the Zones API by domain name when a script needs the ID. In the dashboard, copy it from the domain’s Overview page.

  API, Interface

- ### [Export DNS records as a BIND zone file](https://weaveos.com/reference/cloudflare/export-dns-records)

  Export a zone’s DNS records in BIND format. The REST endpoint supports record filters. The generated TypeScript client currently exposes only the zone identifier for this call.

  API, SDK
