v2

latestOpenAPI 3.0.1private2026-07-2667209320.4 KB
Hosted OAS

Map application OpenAPI specs

Toggle includes an OpenAPI specification from a repository source with the specified application.

Requires write:scan_config permission.

post/api/v1/oas/{appId}/mapping

Path parameters

appIdstring uuid required

UUID identifier for this StackHawk Application.

Request body

appIdstring

The applicationId to map the oas specs

includeboolean

Whether the spec is now included or now excluded from the application mapping

oasIdstring

UUID of the hosted OAS files

repositoryIdstring

Repository UUID

sourceRootPathstring

Source code path in repository from the OAS

Response

Get the OAS specs mapped to this application for use with HawkScan.

appIdstring

The requested applicationId

repoIdsstring[]

repository IDs mapped to this application