...
Descriptor | Value |
---|---|
HTTP Method | POST |
Description | Change Update the specified vulnerability to a false positive's False Positive status |
Required Permission | Update Vulnerability False Positive Status |
Version Introduced | 2.6 |
Changes in 2.7.2 | Changed required permission from Modify Vulnerabilities to Update Vulnerability False Positive Status |
Changes in 2.7.9 | Added a parameter 'falsePositive' to control if you set the False Positive status to True or False. |
Request Header Parameters
Parameter | Value | Required | Description |
---|---|---|---|
Accept | String | Yes | A value of ‘application/json’ must be provided. |
Request POST Data Parameters
Parameter | Value | Required | Description |
---|---|---|---|
falsePositive | Boolean | No | Provide 'true' to mark the vulnerability as False Positive. Provide 'false' to mark the vulnerability as Not False Positive. Defaults to 'true' if not provided. |
Sample Calls:
Code Block | ||
---|---|---|
| ||
curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" -X POST --data 'falsePositive=true' http://localhost:8080/threadfix/rest/latest/vulnerabilities/{vulnerabilityId}/setFalsePositive |
...
Code Block | ||
---|---|---|
| ||
{ "message": "The vulnerability has been successfully set as falseFalse positivePositive.", "success": true, "responseCode": -1, "object": 241 } |
...