Add repositories to an application
Adds up to 50 connected repositories to an application, named by its id or slug. Use repository ids from GET /repos. A repository already in the application stays as it is. The response lists every repository in the application, oldest first, and Hacktron queues an update of the application’s threat model. Only organisation admins can call it.
Request
POST /applications/{idOrSlug}/repositories
Send an API key with the write scope in the X-Api-Key header.
Path parameters
| Parameter | Description |
|---|---|
idOrSlugstring, required |
Body
A required application/json body.
| Field | Description |
|---|---|
repository_idsarray of string, required | Ids from the repository list. |
Responses
200 OK
| Field | Description |
|---|---|
reposarray of object, required | |
repos[].string, required | |
repos[].string, required | |
repos[].string, required, nullable | |
repos[].string (date-time), required |