StackHawk Documentation StackHawk Logo HawkDocs

No results found

Try different keywords or check your spelling

Search documentation

Find guides, API references, and more

esc

Associate application to repository

PUT /api/v1/org/{orgId}/repos/apps

Replace Repository Applications

Creates the given apps and then adds them to the specified repos.

Usage: Only the id parameters are required for this request. All other fields are ignored.

  • orgId
  • repoId
  • appInfos.[*].name - one entry for the name of each app you want to create.

Note that the other fields in appInfos are read-only for this request, and will be ignored.

🧾 Audited This is recorded as APPLICATIONS_ADDED_FOR_REPOS User Activity.

Requires write:application permission.

Path parameters

orgIdstring · uuidrequired

UUID identifier for this StackHawk Organization.

Body

newRepositoryApps
repository.NewRepositoryApp[]

The list of repository to application mappings to set for a repository.

Hide child attributesShow child attributes
newRepositoryApps.appInfos
repository.AppInfo[]

The list of applications to be created for the specified repository.

Hide child attributesShow child attributes
newRepositoryApps.appInfos.appStatus
enum<string>

Read-only field for the application status.

2 available options
ACTIVEENV_INCOMPLETE
newRepositoryApps.appInfos.id
string

The application id.

newRepositoryApps.appInfos.lastScanHost
string

Read-only field for the last scan host.

newRepositoryApps.appInfos.lastScanId
string

Read-only field for the last scan id.

newRepositoryApps.appInfos.lastScanTimestamp
integer<int64>

Read-only field for the last scan timestamp.

newRepositoryApps.appInfos.name
string

The application name.

newRepositoryApps.repoId
string

The repository id to associate to the list of applications.

orgId
string

The organization to map an an existing application to an existing repository in.

Response

OK

newRepositoryApps
repository.NewRepositoryApp[]

The list of updated repository to application mappings.

Hide child attributesShow child attributes
newRepositoryApps.appInfos
repository.AppInfo[]

The list of applications to be created for the specified repository.

Hide child attributesShow child attributes
newRepositoryApps.appInfos.appStatus
enum<string>

Read-only field for the application status.

2 available options
ACTIVEENV_INCOMPLETE
newRepositoryApps.appInfos.id
string

The application id.

newRepositoryApps.appInfos.lastScanHost
string

Read-only field for the last scan host.

newRepositoryApps.appInfos.lastScanId
string

Read-only field for the last scan id.

newRepositoryApps.appInfos.lastScanTimestamp
integer<int64>

Read-only field for the last scan timestamp.

newRepositoryApps.appInfos.name
string

The application name.

newRepositoryApps.repoId
string

The repository id to associate to the list of applications.

orgId
string

The organization id where repository to application mappings were updated.

newRepositoryApps
repository.NewRepositoryApp[]

The list of updated repository to application mappings.

Hide child attributesShow child attributes
newRepositoryApps.appInfos
repository.AppInfo[]

The list of applications to be created for the specified repository.

Hide child attributesShow child attributes
newRepositoryApps.appInfos.appStatus
enum<string>

Read-only field for the application status.

2 available options
ACTIVEENV_INCOMPLETE
newRepositoryApps.appInfos.id
string

The application id.

newRepositoryApps.appInfos.lastScanHost
string

Read-only field for the last scan host.

newRepositoryApps.appInfos.lastScanId
string

Read-only field for the last scan id.

newRepositoryApps.appInfos.lastScanTimestamp
integer<int64>

Read-only field for the last scan timestamp.

newRepositoryApps.appInfos.name
string

The application name.

newRepositoryApps.repoId
string

The repository id to associate to the list of applications.

orgId
string

The organization id where repository to application mappings were updated.

Bad Request

Unauthorized

Your privacy settings

We use first and third party cookies to ensure that we give you the best experience on our website and in our products.