Rotate Page Rule
A 3-step recipe with Cloudflare. We can help you get access.
Recipe · 3 steps
Rotate Page Rule
with Cloudflare
Create, edit, and delete a page rule in a single lifecycle.
- Create a page rule with its initial action.
- Edit the page rule to apply the replacement action value.
- Delete the page rule now that the edit is complete.
What you'll need to have ready
- zoneId: The unique identifier of the zone.
- urlPattern: The URL match pattern (e.g. *example.com/images/*).
- actionId: The page rule action setting id (e.g. cache_level).
- actionValue: The initial value applied by the action.
- newActionValue: The replacement value applied during the edit.
For your developer
Arazzo workflow cloudflare:rotate-page-rule, 3 operations: page-rules-create-a-page-rule → page-rules-edit-a-page-rule → page-rules-delete-a-page-rule. Specs on APIs.io.