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 a repository's threat model

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

Copy page

Update a repository's threat model

View MarkdownOpen in ChatGPTOpen in ClaudeOpen in PerplexityDownload OpenAPI

Folds a repository’s new context documents and triage feedback, such as false positives and accepted risks, into its threat model. Use the repository’s id from GET /repos. You need the member role or above.

  • When the repository has no threat model yet, Hacktron builds its first one from the code and initial is true. Documents saved before then are folded in by the next update.
  • started is false when nothing new was waiting to be folded in.
  • A first build that can’t start returns 503 Service Unavailable. Try again later.

The update runs in the background for a few minutes. Read the result with GET /context-documents/{id}.

Request

POST /repositories/{id}/threat-model/sync

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

Path parameters

ParameterDescription
id
string, required

Responses

200 OK

FieldDescription
started
boolean, required
Whether an update started; false when nothing new was waiting to be folded in.
initial
boolean, required
Whether this builds the repository’s first threat model from its code.
[↓] [↑] [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]