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
Bodyrequired
cvesToSuppress object[]
metadata object
sourceTypestring
typeSubmitActionsType (string)required
Possible values: [default
, pr
]
violationsToFix object[]required
violationsToSuppress object[]required
Responses
- 200
- 401
- 422
- 500
- application/json
- Schema
- Example (auto)
Schema
data objectrequired
{
"data": {
"message": "string",
"remediationsResponse": [
"string"
]
}
}
Insufficient role permissions
Request arguments validation error
type: TYPE not supported.
Authorization: authorization
name: authorizationtype: apiKeyin: headerx-amazon-apigateway-authorizer: { "authorizerResultTtlInSeconds": 0, "authorizerUri": "arn:aws:apigateway:{Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:{Region}:{AccountId}:function:bc-authorization-v2-authorizer-{UniqueTag}{Alias}/invocations", "identitySource": "method.request.header.authorization", "type": "request" }x-amazon-apigateway-authtype: custom
- curl
- python
- go
- nodejs
- csharp
- php
- CURL
curl -L -X POST 'https://pan.dev/code/api/v1/errors/submitActions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'authorization: <authorization>'