v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
Advanced Rules

Update an advanced rule

Only properties present in the request will be updated

patch/waap/v1/domains/{domain_id}/advanced-rules/{rule_id}

Path parameters

domain_idinteger required

The domain ID

The domain ID

rule_idinteger required

The advanced rule ID

The advanced rule ID

Request body

namestring nullable

The name assigned to the rule

descriptionstring nullable

The description assigned to the rule

enabledboolean nullable

Whether or not the rule is enabled

sourcestring nullable

A CEL syntax expression that contains the rule's conditions. Allowed objects are: request, whois, session, response, tags, user_defined_tags, user_agent, client_data.

More info can be found here: https://gcore.com/docs/waap/waap-rules/advanced-rules

phase'access' | 'header_filter' | 'body_filter' nullable

The WAAP request/response phase for applying the rule.

The "access" phase is responsible for modifying the request before it is sent to the origin server.

The "header_filter" phase is responsible for modifying the HTTP headers of a response before they are sent back to the client.

The "body_filter" phase is responsible for modifying the body of a response before it is sent back to the client.

Example request

{
  "name": "Block foobar bot",
  "action": {
    "block": {
      "action_duration": "12h"
    }
  }
}

Response

Successful Response