Replace Page Rule
A 3-step recipe with Cloudflare. We can help you get access.
Recipe · 3 steps
Replace Page Rule
with Cloudflare
Create a page rule, replace its full configuration, and read it back.
- Create a page rule with its initial target and action.
- Replace the page rule so its configuration exactly matches the new target and action.
- Read the page rule back to confirm the replacement.
What you'll need to have ready
- zoneId: The unique identifier of the zone.
- urlPattern: The initial URL match pattern.
- actionId: The page rule action setting id (e.g. cache_level).
- actionValue: The initial value applied by the action.
- newUrlPattern: The replacement URL match pattern.
- newActionValue: The replacement value applied by the action.
For your developer
Arazzo workflow cloudflare:replace-page-rule, 3 operations: page-rules-create-a-page-rule → page-rules-update-a-page-rule → page-rules-get-a-page-rule. Specs on APIs.io.