Skip to main content
PUT
/
api
/
threat-model
cURL
curl -X PUT "https://app.cotool.ai/api/threat-model" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"content":"string","changeDescription":"string"}'
{
  "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "currentVersion": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "version": 123,
    "isCurrent": true,
    "authorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "modelAlias": "<string>",
    "changeDescription": "<string>",
    "createdAt": "<string>",
    "content": "<string>"
  }
}

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

Body

application/json
content
string
required

Updated full markdown content for the threat model

Minimum string length: 1
changeDescription
string | null

Optional reason for the change

Required string length: 1 - 255

Response

200 - application/json

Successful response

organizationId
string<uuid>
required

Organization that owns this threat model

currentVersion
object
required

Current active version for the organization