POST /zones/{zone_id}/dns_records/batch
Send a Batch of DNS Record API calls to be executed together.
Notes:
-
Although Cloudflare will execute the batched operations in a single database transaction, Cloudflare's distributed KV store must treat each record change as a single key-value pair. This means that the propagation of changes is not atomic. See the documentation for more information.
-
The operations you specify within the /batch request body are always executed in the following order:
- Deletes
- Patches
- Puts
- Posts
Servers
- https://api.cloudflare.com/client/v4
Path parameters
Name | Type | Required | Description |
---|---|---|---|
zone_id |
String | Yes |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
posts[] |
Array | No | |
deletes[] |
Array | No | |
deletes[].id |
String | Yes |
Identifier. |
patches[] |
Array | No | |
patches[].id |
String | Yes |
Identifier. |
puts[] |
Array | No | |
puts[].id |
String | Yes |
Identifier. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.