capabilities.work

Create Page Rule

A 2-step recipe with Cloudflare. We can help you get access.

Recipe · 2 steps

Create Page Rule

Create a page rule then fetch it by id to verify it persisted.

  1. Create a page rule that matches the supplied URL pattern and applies the supplied action.
  2. Fetch the page rule by its identifier to confirm it persisted.
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, forwarding_url).
  • actionValue: The value applied by the action (e.g. cache_everything).
  • status: Whether the page rule is active or disabled (active or disabled).
For your developer

Arazzo workflow cloudflare:create-page-rule, 2 operations: page-rules-create-a-page-rule → page-rules-get-a-page-rule. Specs on APIs.io.