uploadSbomFile
Upload a vendor-provided CycloneDX SBOM (OX format) for SCA analysis. Returns a requestId that can be used to track the upload status.
Examples
curl -X POST \
https://api.cloud.ox.security/api/apollo-gateway \
-H 'Content-Type: application/json' \
-H 'Authorization: YOUR_API_TOKEN' \
-d '{
"query": "mutation UploadSbomFile($tool: String!, $file: Upload!) { uploadSbomFile(tool: $tool, file: $file) { requestId success message } }",
"variables": {
"tool": "example",
"file": "example"
}
}'Arguments
You can use the following argument(s) to customize your uploadSbomFile mutation.
Argument
Description
Supported fields
tool String! required
App / SBOM name used to label the file
file Upload! required
Fields
Return type: UploadFileResponse!
You can use the following field(s) to specify what information your uploadSbomFile mutation will return. Please note that some fields may have their own subfields.
Field
Description
Supported fields
requestId String!
Unique identifier for tracking the upload request
success Boolean!
Indicates whether the file upload was successful
message String
Human-readable error message when success is false (e.g. duplicate or oversized upload)
Last updated
