OpenAI is partnering with Hacktron to find vulnerabilities in its systems. Read the announcement.

Skip to content Hacktron Sign in [S]
Hacktron Sign in [S] Customers Docs Contact Sign in

Update an application's threat model

1 min
, View, ChatGPT, Claude, Perplexity, OpenAPI

Copy page

Update an application's threat model

View MarkdownOpen in ChatGPTOpen in ClaudeOpen in PerplexityDownload OpenAPI

Rebuilds an application’s threat model from its repositories’ threat models, together with the context documents uploaded for the application. Hacktron first builds a threat model from the code for any repository that has none. Name the application by its id or slug. An application with no repositories returns 400 Bad Request. You need the member role or above.

The build runs in the background, and the response returns once it has started. To read the result, list the context documents of any of the application’s repositories with GET /context-documents. The application’s threat model is the document of kind application_threat_model.

Request

POST /applications/{idOrSlug}/threat-model/sync

Send an API key with the write scope in the X-Api-Key header.

Path parameters

ParameterDescription
idOrSlug
string, required

Responses

200 OK

FieldDescription
started
boolean, required
True if a workflow was started; false if nothing was pending.
[↓] [↑] [enter] to visit
Menu
[M]
Next in menu
[J]
Previous in menu
[K]
Find
[F]
Ask
[A]
Sign in
[S]
Copy page
[C]
Listen
[L]
Justification
[R]
Language
[G]
Dark mode
[D]
High contrast
[H]
Shortcuts
[I]
Close
[Esc]