PATCH
/
waap
/
v1
/
domains
/
{domain_id}
/
policies
/
{policy_id}
/
toggle
curl --request PATCH \
  --url https://api.gcore.com/waap/v1/domains/{domain_id}/policies/{policy_id}/toggle \
  --header 'APIKey: <api-key>'
{
  "mode": true
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

domain_id
integer
required

The domain ID

policy_id
string
required

The ID of the policy to toggle

Response

200
application/json

Successful Response

Represents the mode of a security rule.