Page Rules
PageRules
Methods
Fetches Page Rules in a zone.
Fetches the details of a Page Rule.
Creates a new Page Rule.
Replaces the configuration of an existing Page Rule. The configuration of the updated Page Rule will exactly match the data passed in the API request.
Updates one or more fields of an existing Page Rule.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Zone Write Page Rules Write
Identifier.
Path param: Identifier.
Body param: The set of actions to perform if the targets of this rule match the request. Actions can redirect to another URL or override settings, but not both.
Body param: The priority of the rule, used to define which Page Rule is processed
over another. A higher number indicates a higher priority. For example,
if you have a catch-all Page Rule (rule A: /images/*) but want a more
specific Page Rule to take precedence (rule B: /images/special/*),
specify a higher priority for rule B so it overrides rule A.
Body param: The status of the Page Rule.
Body param: The rule targets to evaluate on each request.
Identifier.
The set of actions to perform if the targets of this rule match the request. Actions can redirect to another URL or override settings, but not both.
The timestamp of when the Page Rule was created.
The timestamp of when the Page Rule was last modified.
The priority of the rule, used to define which Page Rule is processed
over another. A higher number indicates a higher priority. For example,
if you have a catch-all Page Rule (rule A: /images/*) but want a more
specific Page Rule to take precedence (rule B: /images/special/*),
specify a higher priority for rule B so it overrides rule A.
The status of the Page Rule.
The rule targets to evaluate on each request.
Deletes an existing Page Rule.
Domain types
URL target.