For some operations, you can use specific endpoints provided by the Rulesets API for managing the rulesets of phases. These endpoints include the phase name in the endpoint instead of the ruleset ID.
For example, instead of using the following endpoint:
You can use the following endpoint:
To invoke a Cloudflare Rulesets API operation, append the endpoint to the Cloudflare API base URL:
For authentication instructions, see Getting Started: Requests in the Cloudflare API documentation.
For help with endpoints and pagination, see Getting Started: Endpoints.
The Cloudflare Rulesets API supports the operations outlined below. Visit the associated links for examples.
List and view rulesets
Update and deploy rulesets
|Update or deploy a ruleset|
Updates the basic properties of a ruleset and the list of rules in the ruleset.
Allows you to deploy Managed Rulesets.
|Update a rule in a ruleset|
Updates the definition of a single rule within a ruleset.
Allows you to change the order of a rule in a ruleset.