curl -X PATCH "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records/$RECORD_ID" -H 'Authorization: Bearer $CF_API_TOKEN' -H 'Content-Type: application/json' -d '{"content":"5.6.7.8"}'

Category: Cloudflare

curl -X PATCH "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records/$RECORD_ID" -H 'Authorization: Bearer $CF_API_TOKEN' -H 'Content-Type: application/json' -d '{"content":"5.6.7.8"}'

Update an existing DNS record

Changes just the fields you send, here repointing the record to 5.6.7.8 while keeping its type, name, and proxied status. RECORD_ID comes from the list command's .result[].id. Propagation is near-instant through Cloudflare, so verify with a lookup right after.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.