Skip to main content
POST
/
api
/
detection-rules
/
proposals
/
{id}
/
smart-publish
cURL
curl -X POST "https://app.cotool.ai/api/detection-rules/proposals/:id/smart-publish" \
  -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"],"createdAt":"string","updatedAt":"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

Body

application/json
draft
object

Optional draft to publish instead of the original proposal

Response

200

Successful response - no content