Skip to main content

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

Body

required
    cvesToSuppress object[]
  • Array [
  • 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
  • Array [
  • 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
  • ]
  • violationsToSuppress object[]required
  • Array [
  • 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
  • ]

Responses

Schema
    data objectrequired
    message stringrequired
    remediationsResponse string[]
Loading...