StackHawk Documentation StackHawk Logo HawkDocs

No results found

Try different keywords or check your spelling

Search documentation

Find guides, API references, and more

esc

Replace repository application mappings

POST /api/v1/org/{orgId}/repo/{repoId}/applications

Replace Repository Applications

Replace the list of applications for the given repository.

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

  • orgId
  • repoId
  • appInfos.[*].id - one entry for each app you want to map. You must pass in current mappings to maintain them.

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.

repoIdstring · uuidrequired

UUID identifier for this StackHawk Repository.

Body

appInfos
repository.AppInfo[]

The list of application mappings for this repository.

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

Read-only field for the application status.

2 available options
ACTIVEENV_INCOMPLETE
appInfos.id
string

The application id.

appInfos.lastScanHost
string

Read-only field for the last scan host.

appInfos.lastScanId
string

Read-only field for the last scan id.

appInfos.lastScanTimestamp
integer<int64>

Read-only field for the last scan timestamp.

appInfos.name
string

The application name.

orgId
string

The organization this operation belong to.

repoId
string

The repository id to replace application mappings for.

Response

OK

appInfos
repository.AppInfo[]

The list of application mappings for this repository.

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

Read-only field for the application status.

2 available options
ACTIVEENV_INCOMPLETE
appInfos.id
string

The application id.

appInfos.lastScanHost
string

Read-only field for the last scan host.

appInfos.lastScanId
string

Read-only field for the last scan id.

appInfos.lastScanTimestamp
integer<int64>

Read-only field for the last scan timestamp.

appInfos.name
string

The application name.

orgId
string

The organization this operation belong to.

repoId
string

The repository id to replace application mappings for.

appInfos
repository.AppInfo[]

The list of application mappings for this repository.

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

Read-only field for the application status.

2 available options
ACTIVEENV_INCOMPLETE
appInfos.id
string

The application id.

appInfos.lastScanHost
string

Read-only field for the last scan host.

appInfos.lastScanId
string

Read-only field for the last scan id.

appInfos.lastScanTimestamp
integer<int64>

Read-only field for the last scan timestamp.

appInfos.name
string

The application name.

orgId
string

The organization this operation belong to.

repoId
string

The repository id to replace application mappings for.

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.