Create an Edge Rule

This call creates a new edge rule (HTTP header rewrite).

For more information on rules and their usage, refer to the following resources:

Requires API Key as apikey request header or apikey URL query parameter.

Rate Limit: 5 requests/min

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Domain. It's the subdomain that you attached to your site domain (root domain).

Body Params

Create an edge rule

string
required

Name of the rule.

boolean
required

To activate or deactivate a rule.

integer
≥ 0

The system sets the rule with the lowest value to have the highest priority, while the rule with the highest value has the lowest priority.

Note that the priority cannot be repeated.

action
object
required

The configuration of the action.

rules
array of objects
required

List of match rule

rules*
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json