How do I add ‘Create Zone’ permissions to a custom API Token?
Right now I’m getting the error “Requires permission “com.Cloudflare.api.account.zone.create” to create zones for the selected account”
I’ve searched in both the ‘Zone’ and ‘Account’ drop downs but can’t find an option for Create Zone
Thanks
According to the API docs you need zone:edit
: Cloudflare API v4 Documentation
This should do it
posting our solution here as well in case it helps someone as different cause
we had the same error “Requires permission "com.Cloudflare.api.account.zone.create" to create zones for the selected account” using curl/postman/terraform but our API token already had that permission “zone” → “zone” → “edit” but still wouldn’t allow us to create a new zone
we have a single account for the entire organisation and many different projects create their own zones under that. to reduce accidental issues we placed a filter to restrict our API token to our zone only. sometime later we wanted to delete that zone and were told by support because of some settings on it a manual webUI delete was required and this was performed, when it was deleted however it left the rule on the API token with a blank value in the zone drop down which had the effect of not allowing us any zone permissions and that is how we got that error, to resolve we changed it to “all zones”.
1 Like