Skip to main content
POST
/
api
/
detections
/
{id}
/
toggle-enabled
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
}

Documentation Index

Fetch the complete documentation index at: https://docs.cotool.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here

Path Parameters

id
string<uuid>
required

Detection UUID

Body

application/json
enabled
boolean
required

Whether to enable or disable the detection schedule

Response

200 - application/json

Successful response

enabled
boolean
required

The new enabled state

success
boolean
required

Whether the toggle was successful