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

Add repositories to an application

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

Copy page

Add repositories to an application

View MarkdownOpen in ChatGPTOpen in ClaudeOpen in PerplexityDownload OpenAPI

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

ParameterDescription
idOrSlug
string, required

Body

A required application/json body.

FieldDescription
repository_ids
array of string, required
Ids from the repository list.

Responses

200 OK

FieldDescription
repos
array of object, required
repos[].application_id
string, required
repos[].repo_url
string, required
repos[].added_by
string, required, nullable
repos[].added_at
string (date-time), required
[↓] [↑] [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]