Versions Compared

Key

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

/rest/defects/{defectId}


Descriptor

Value

HTTP Method

GET

Description

Returns details about selected defect.

Required Permission

Read Access (Any Role)

Version Introduced2.7.3


Request Header Parameters

Parameter

Value

Required

Description

Accept

String

Yes

A value of ‘application/json’ must be provided.

AuthorizationAPIKEY {apiKey}YesAPI being used to execute API call.

 

Sample Calls:


Code Block
themeEclipse
curl -H 'Accept: application/json' -H 'Authorization: APIKEY {apiKey}' http://localhost:8080/threadfix/rest/latest/defects/1


Sample Output:


Code Block
themeEclipse
{
    "message": "Retrieved defect details",
    "success": true,
    "responseCode": -1,
    "object": {
        "defectDetails": {
            "id": 1,
            "nativeId": "TFDEF-44",
            "status": "Open",
            "category": null,
            "defectURL": "https://threadfix.atlassian.net/browse/TFDEF-44",
            "opened": true,
            "defectTrackerName": "Jira DT - TFDefectTest"
        },
        "vulnerabilityIds": [
            523532
        ],
        "application": {
            "name": "Bodgeit",
            "id": 19
        },
        "team": {
            "name": "Iterative Scans",
            "id": 7
        }
    }
}




Page Tree
rootVulnerabilities API