Create CAA Record using API v4

This is nowhere inclduded in the documentations.
Also according to this

The type parameter doesnt include/support (maybe?) CAA as a value.

how is it achieved then?

I’m trying to do it using CURL

actually I figured out how to:

curl -X POST “https://api.cloudflare.com/client/v4/zones/ **<ZONE_ID>** /dns_records” -H “X-Auth-Key: **<AUTH_KEY>** ” -H “Content-Type:application/json” -H “X-Auth-Email: [[email protected]](mailto:[email protected])” --data ‘{“type”:“CAA”,“name”:“test123”,“content”:“0 issue ‘letsencrypt[dot]org’”,“ttl”:1,“proxied”:false, “data”:{“flags”: 0, “tag”: “issue”, “value”: “letsencrypt[dot]org”}}’

replace letsencrypt.org with your preferred CA