Skip to main content
POST
/
api
/
detection-authoring
/
drafts
/
{chatId}
/
smart-deploy
cURL
curl -X POST "https://app.cotool.ai/api/detection-authoring/drafts/:chatId/smart-deploy" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"draft":{"chatId":"string","proposalId":"string","organizationId":"string","platform":"string","name":"string","description":"string","query":"string","reasoning":"string","mitreTechniqueIds":["string"],"mitreTechniqueNames":["string"],"dataSourcesRequired":["string"],"detectionIntent":{"methodLabel":"string","rationale":"string","confidence":"high","keyKnobs":null},"platformConfig":{"version":1,"platform":"datadog","queries":[{"name":"string","query":"string","aggregation":"count","dataSource":null,"groupByFields":["string"],"distinctFields":["string"]}],"cases":[{"status":"info","condition":"string","name":"string"}],"options":{"detectionMethod":"threshold","evaluationWindow":0,"keepAlive":0,"maxSignalDuration":0,"decreaseCriticalityBasedOnEnv":true},"isEnabled":true},"createdAt":"string","updatedAt":"string"}}'
{
  "error": "<string>",
  "issues": [
    {}
  ]
}

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

chatId
string<uuid>
required

Body

application/json
draft
object

Optional draft to deploy instead of the original proposal

Response

Successful response - no content