Toggle rules
Sets the rule to be turned on or off
Available on:
Path parameters
-
ID of an account
-
Optimization rule ID
POST /accounts/{account_id}/rules/{rule_id}/toggle
curl \
-X POST https://api.clickguard.com/accounts/{account_id}/rules/{rule_id}/toggle \
-H "X-API-KEY: $API_KEY" \
-H "Content-Type: application/json" \
-d '"{\n \"active\": true\n}"'
Request example
"{\n \"active\": true\n}"
Request examples
{
"active": true
}
Response examples (200)
"{\n \"message\": \"Operation successful\"\n}"
Response examples (200)
[
{
"message": "string"
}
]