Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 Introduced2.6
Changes in 2.7.2Changed required permission from Modify Vulnerabilities to Update Vulnerability False Positive Status
Changes in 2.7.9Added 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
themeEclipse
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
themeEclipse
{
    "message": "The vulnerability has been successfully set as falseFalse positivePositive.",
    "success": true,
    "responseCode": -1,
    "object": 241
}

...