Create an application
Creates an application from 1 to 50 connected repositories that make up one product or service. Name the repositories by their ids from GET /repos. Hacktron makes the application’s slug from its name, unique within the organisation. Only organisation admins can call it.
When every repository already has a threat model, Hacktron starts building the application’s threat model straight away. Otherwise, build it with POST /applications/{idOrSlug}/threat-model/sync, which builds the missing repository threat models first.
Request
POST /applications
Send an API key with the write scope in the X-Api-Key header.
Body
A required application/json body.
| Field | Description |
|---|---|
namestring, required | At most 128 characters. |
repository_idsarray of string, required | Ids from the repository list. |
Responses
200 OK
| Field | Description |
|---|---|
idstring, required | |
organization_idstring, required | |
slugstring, required | |
namestring, required | |
tagsarray of string, required | |
created_bystring, required, nullable | |
created_atstring (date-time), required | |
updated_atstring (date-time), required | |
reposarray of object | |
repos[].string, required | |
repos[].string, required | |
repos[].string, required, nullable | |
repos[].string (date-time), required | |
repo_countnumber | |
finding_countnumber | |
threat_model_updated_atstring, nullable | ISO timestamp of the most recently updated threat_model.md across the application’s repos, or null if none have one. The list endpoint orders applications by this (most recent first; applications without a threat model last). |