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, "authorType": "ai", "authorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "modelAlias": "<string>", "changeDescription": "<string>", "createdAt": "<string>", "content": "<string>" } }
Save a user-edited threat model as a new version in the organization history.
API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here
Bearer your_api_key_here
Updated full markdown content for the threat model
1
Optional reason for the change
1 - 255
Successful response
Organization that owns this threat model
Current active version for the organization
Show child attributes
Was this page helpful?