Skip to main content
PATCH
/
waap
/
v1
/
domains
/
{domain_id}
/
custom-rules
/
{rule_id}
/
{action}
Toggle a custom rule
curl --request PATCH \
  --url https://api.gcore.com/waap/v1/domains/{domain_id}/custom-rules/{rule_id}/{action} \
  --header 'Authorization: <api-key>'
{
  "type": "http-bad-request",
  "title": "Bad Request",
  "status": 400,
  "detail": "Invalid domain name: ''''"
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

domain_id
integer
required

The domain ID

action
enum<string>
required

Enable or disable a custom rule

Available options:
enable,
disable
rule_id
integer
required

The custom rule ID

Response

Successful Response