cURL
curl -X POST "https://app.cotool.ai/api/detections/:id/toggle-enabled" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"enabled":true}'
{ "enabled": true, "success": true }
Enable or disable a detection’s scheduled execution.
API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here
Bearer your_api_key_here
Detection UUID
Whether to enable or disable the detection schedule
Successful response
The new enabled state
Whether the toggle was successful
Was this page helpful?