Update a project finding state (review and/or suppression) or severity
- Get a project finding (SAST)
Mend API (3.0)
Mend's enhanced API enables automation of workflows in a REST compliant format. The API features:
- Access for any user with Mend credentials, via a user key available in the user's profile page in the Mend Platform.
- Improved security with a JWT token per organization, which expires every 30 minutes.
- Added scalability with support for cursor pagination and limiting results size.
- Broader functionality available programmatically.
- New standard API documentation for easy navigation and search.
If you have a dedicated instance of Mend, contact your Mend representative to access this API on your instance.
Note: To help you get started with the Mend API 3.0, we recommend reviewing our onboarding guide -> Getting Started with API 3.0. This resource covers initial setup, authentication instructions, and helpful tips to help you successfully begin working with the Mend API 3.0.
Patch operation to apply to the finding
If set, it has to be either High, Medium or Low. Case insensitive, all values are converted to have the first letter uppercase and others lowercase, e.g. High.
- Generated server urlhttps://baseUrl/api/v3.0/projects/{projectUuid}/code/findings/{findingSnapshotId}
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
{ "customSeverity": "string", "origin": "string", "reviewed": true, "suppressed": true, "suppressionReason": "string" }
- Generated server urlhttps://baseUrl/api/v3.0/projects/{projectUuid}/code/findings/{findingUuid}
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payload{ "additionalData": {}, "response": { "ageRating": 0, "almIssues": { … }, "appId": "string", "baseline": true, "comments": [ … ], "confidenceRating": 0, "correlatedDastFindingUuids": [ … ], "createdTime": "string", "dataFlows": [ … ], "description": "string", "hasRemediation": true, "id": "string", "isNew": true, "issueStatus": 0, "projectId": "string", "rating": 0, "refId": "string", "reviewed": true, "riskFactors": { … }, "scanId": "string", "severity": "string", "severityRating": 0, "sharedStep": { … }, "snapshotId": "string", "suppressed": true, "suppressedBy": "string", "suppressionMessage": "string", "suppressionRejected": true, "suppressionRequestComment": "string", "suppressionRequested": true, "suppressionTime": "string", "type": { … }, "workflowViolations": [ … ], "workflowViolationsCount": 0 }, "supportToken": "string" }
Array of finding status update requests. Each item requires: status. For findings, either packageUUID or vulnerabilityName should be provided. For 'suppressed' status, reason is also required.
- Generated server urlhttps://baseUrl/api/v3.0/projects/{projectuuid}/images/findings
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
[ { "comment": "string", "packageUUID": "string", "reason": "Acceptable risk", "status": "suppressed", "vulnerabilityName": "string" } ]
{ "additionalData": { "error": "string", "paging": { … }, "totalItems": 100 }, "response": { "failedPackageUUID": [ … ], "updatedStatuses": [ … ] }, "supportToken": "659C0A4730" }