Skip to main content
PUT
/
api
/
detections
/
{id}
/
alert-routing
cURL
curl -X PUT "https://app.cotool.ai/api/detections/:id/alert-routing" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"inheritOrgDefault":true,"responseAgentId":"string"}'
{
  "override": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "detectionAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "responseAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "responseAgentName": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>"
  },
  "effective": {
    "detectionAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "responseAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "responseAgentName": "<string>",
    "inheritedDefaultResponseAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "inheritedDefaultResponseAgentName": "<string>"
  },
  "defaultSettings": {
    "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "defaultResponseAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "defaultResponseAgentName": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>"
  },
  "responseAgents": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    }
  ]
}

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 agent id

Body

application/json
inheritOrgDefault
boolean

When true, remove the detection override

responseAgentId
string<uuid> | null

Override response agent, or null to leave alerts unassigned

Response

Successful response

override
object
required
effective
object
required
defaultSettings
object
required
responseAgents
object[]
required