sites

Create Edge Rule

Add an edge rule to a site. It goes to the bottom of its list, so the rules already there act first, except a trusted IP addresses rule, which goes to the top. It is activating until the edge has it, within a few minutes.

post/sites/{site_id}/edge_rules/create

Request

Path parameters

site_idinteger required

Request body

namestring
rule_keystring
definitionobject
reasonstring

Response

Successful Response

messagestring
codestring

Example response

{
  "message": "We couldn't reach the edge right now. Try again in a minute.",
  "code": "edge_rules.unavailable"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.