Skip to main content
PATCH
/
waap
/
v1
/
domains
/
{domain_id}
/
policies
/
{policy_id}
/
toggle
Toggle the status of a given policy
curl --request PATCH \
  --url https://api.gcore.com/waap/v1/domains/{domain_id}/policies/{policy_id}/toggle \
  --header 'Authorization: <api-key>'
{
  "mode": true
}

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

policy_id
string
required

The ID of the policy to toggle

Response

Successful Response

Represents the mode of a security rule.

mode
boolean
required

Indicates if the security rule is active