Imports Sbom for a given projectId. Only Project Owner and Analyst can Import Project Sbom into a private project.
Try it out is not available for this API. This API can be tested using conventional REST API clients such as postman or cURL. When calling this API from a REST client, you need to run either of the curl commands.
curl -H "Authorization:Bearer %jwt%" -F sbomFile=@"fileToImport.json;type=application/json" http://localhost:8888/codeinsight/api/projects/%projectId%/importSbomSecurity
bearerAuth
- Mock serverhttps://codeinsightapi.redocly.app/_mock/swagger/projects/{projectId}/importSbom
- Code Insight REST API Serverhttps://codeinsightapi.redocly.app/codeinsight/api/projects/{projectId}/importSbom
curl -i -X POST \
'https://codeinsightapi.redocly.app/_mock/swagger/projects/{projectId}/importSbom' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: multipart/form-data' \
-F 'Sbom File to import={}' \
-F 'sbomFile={"type":"string","parameters":{"property1":"string","property2":"string"},"fileName":"string","creationDate":"2019-08-24T14:15:22Z","modificationDate":"2019-08-24T14:15:22Z","readDate":"2019-08-24T14:15:22Z","size":0,"name":"string"}' \
-F 'Delete SBOM bucket=string'