POST /zones/{zone_id}/pagerules

Creates a new Page Rule.

Servers

Path parameters

Name Type Required Description
zone_id String Yes

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
priority Integer No

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.

Default value: 1

actions[] Array Yes

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.

targets[] Array Yes

The rule targets to evaluate on each request.

status String No

The status of the Page Rule.

Possible values:

  • "active"
  • "disabled"

Default value: "disabled"

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.