Submit Remediation and Suppression Actions
POST/code/api/v1/errors/submitActions
deprecated
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
Invokes the suppress fix function in the correct service CI/CD remediations service based on the type of submit (PR or DEFAULT), array of violationsToSuppress, and array of violations to fix.
Request
- application/json
Body
required
- Array [
- ]
- Array [
- CICDViolation
- DefaultBranchViolationToFix
- VulnerabilityToFix
- Array [
- ]
- ]
- Array [
- CICDViolation
- CvesAccountsViolationToSuppress
- ResourceViolationToSuppress
- TagsViolationToSuppress
- SourcesViolationToSuppress
- BaseViolationToSuppress
- CvesViolationToSuppress
- LicenseTypeSuppress
- PackageLicenseSuppress
- CICDLicenseToSuppress
- OrganizationAndPolicyToSuppress
- Array [
- ]
- Array [
- ]
- Array [
- ]
- ]
cvesToSuppress object[]
CICDRunId doublerequired
bulkSuppression boolean
id stringrequired
justification object
comment stringrequired
createdBy stringrequired
expirationTime double
repository stringrequired
resourceId stringrequired
violationId stringrequired
metadata object
owner stringrequired
pr string
repoName stringrequired
runNumber doublerequired
sourceBranchName string
sourceType string
type SubmitActionsType (string)required
Possible values: [default
, pr
]
violationsToFix object[]required
anyOf
CICDRunId doublerequired
bulkSuppression boolean
commentIds string[]required
creationDate stringrequired
errorLines double[]required
frameworkType stringrequired
justification object
comment stringrequired
createdBy stringrequired
expirationTime double
justificationId stringnullablerequired
metadataChecksMetadataPath stringrequired
metadataLines double[]required
repository stringrequired
resourceId stringrequired
runtimeId stringnullable
runtimeSourceId stringnullable
s3FilePath stringrequired
s3FixFilePath stringnullablerequired
severity stringrequired
status stringrequired
updatedDate stringrequired
vcsCommentLine stringnullablerequired
violationId stringrequired
errorLines double[]
fixPath stringnullable
fixedCode stringnullable
fixes object[]
code string
fixedCode string
id stringrequired
inspectedKey stringrequired
percent doublerequired
recommenderType stringrequired
times doublerequired
frameworkType stringrequired
fullId stringrequired
inspectedKey stringnullable
metadataChecksMetadataPath stringrequired
metadataLines double[]required
owner stringrequired
repoName stringrequired
resourceCode stringnullable
resourceId stringrequired
runtimeId stringnullable
runtimeSourceId stringnullable
s3FilePath stringrequired
selectedFix stringnullable
violationId stringrequired
frameworkType stringrequired
id string
owner stringrequired
packageName stringrequired
packageVersion stringrequired
repoName stringrequired
resourceId stringrequired
s3FilePath stringrequired
violationId stringrequired
violationsToSuppress object[]required
anyOf
CICDRunId doublerequired
bulkSuppression boolean
commentIds string[]required
creationDate stringrequired
errorLines double[]required
frameworkType stringrequired
justification object
comment stringrequired
createdBy stringrequired
expirationTime double
justificationId stringnullablerequired
metadataChecksMetadataPath stringrequired
metadataLines double[]required
repository stringrequired
resourceId stringrequired
runtimeId stringnullable
runtimeSourceId stringnullable
s3FilePath stringrequired
s3FixFilePath stringnullablerequired
severity stringrequired
status stringrequired
updatedDate stringrequired
vcsCommentLine stringnullablerequired
violationId stringrequired
accountIds string[]required
comment stringrequired
cves string[]required
expirationTime double
suppressionType stringrequired
violationId stringrequired
comment stringrequired
expirationTime double
resources object[]required
accountId stringrequired
id stringrequired
suppressionType stringrequired
violationId stringrequired
comment stringrequired
expirationTime double
suppressionType stringrequired
tags object[]required
key stringrequired
value stringrequired
violationId stringrequired
accountIds string[]required
comment stringrequired
expirationTime double
suppressionType stringrequired
violationId stringrequired
comment stringrequired
expirationTime double
suppressionType stringrequired
violationId stringrequired
accountIds string[]
comment stringrequired
cves object[]required
cve stringrequired
id stringrequired
uuid stringrequired
expirationTime double
suppressionType stringrequired
violationId stringrequired
comment stringrequired
expirationTime double
licenseTypes string[]required
suppressionType stringrequired
violationId stringrequired
comment stringrequired
expirationTime double
packages string[]required
suppressByRoot booleanrequired
suppressionType stringrequired
violationId stringrequired
bulkSuppression booleanrequired
causePackageId stringrequired
fileId stringrequired
justification objectrequired
comment stringrequired
createdBy stringrequired
expirationTime double
license stringrequired
repository stringrequired
rootPackageId stringrequired
run doublerequired
violationId stringrequired
comment stringrequired
expirationTime double
organizationId stringrequired
suppressionType stringrequired
violationId stringrequired
Responses
- 200
- 401
- 422
- 500
- application/json
- Schema
- Example (from schema)
Schema
data objectrequired
message stringrequired
remediationsResponse string[]
{
"data": {
"message": "string",
"remediationsResponse": [
"string"
]
}
}
Insufficient role permissions
Request arguments validation error
type: TYPE not supported.
Loading...