Toggle auto-blocking

POST /accounts/{account_id}/toggle-auto-blocking

Sets the auto-blocking to be turned on or off for the given account.

Available on: AuditGUARD AlertGUARD PremiumGUARD EliteGUARD

Path parameters

Body Required

Send true to activate auto-blocking

  • active boolean

    Flag to set auto-blocking to active

Responses

  • Successful operation

    Hide response attribute Show response attribute object
    • message string

      Simple message describing the action taken

POST /accounts/{account_id}/toggle-auto-blocking
curl \
 -X POST https://api.clickguard.com/accounts/{account_id}/toggle-auto-blocking \
 -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"
}