Interact with Cloudflare's products and services via the Cloudflare API
#Custom Rules API ?
13 messages · Page 1 of 1 (latest)
hmm you sure this is for Custom rules ? there's no parameters for custom rules id, and no example for the payload
^
Take the response, do some massaging and use it for the request
i already try on https://api.cloudflare.com/client/v4/zones/{zone_identifier}/firewall/rules/{id} , i can get the infomation about the custom rules, but the problem rn is the payload
This endpoint is being deprecated next year https://developers.cloudflare.com/waf/reference/migration-guides/firewall-rules-to-custom-rules/
There are instructions here https://developers.cloudflare.com/waf/custom-rules/create-api/
You are right, sorry. I didn’t get the depreciation thing on mobile
i get this error when want to get list of rules. https://developers.cloudflare.com/api/operations/listZoneRulesets
{"success":false,"errors":[{"code":10000,"message":"Authentication error"}]}
Interact with Cloudflare's products and services via the Cloudflare API
Sounds like your API token/key headers are wrong or you're using an API token that doesn't have permission to access rulesets
hoo i see, i'll check the permission, thank you!!! i'll come back later
i'm kinda confuse right now, i hit the listrulesets, but there is no customs rules we already made, seems like default rules