Upsert DNS Record
A 3-step recipe with Cloudflare. We can help you get access.
Recipe · 3 steps
Upsert DNS Record
with Cloudflare
Upsert a DNS record in a zone, matching on the record name.
- List records in the zone filtered by the supplied name, returning at most one match for the decision.
- Patch the matched record with the supplied content.
- Create a new record when no existing record matched the name.
What you'll need to have ready
- zoneId: The unique identifier of the zone.
- type: The DNS record type (e.g. A, AAAA, CNAME, TXT).
- name: The DNS record name to match on and write (e.g. www.example.com).
- content: The DNS record content value to write.
For your developer
Arazzo workflow cloudflare:upsert-dns-record, 3 operations: listDnsRecords → updateDnsRecord → createDnsRecord. Specs on APIs.io.