Versions Compared

Key

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

/rest/{version}/cwe/{cweId}/setCustomText

Descriptor

Value

HTTP Method

POST

Description

Sets Custom CWE Text for the provided CWE.

Required Permission

Manage Custom CWE Text

Version Introduced

2.3.0

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

customText

String

Yes

The custom text to display in filed defects.

Sample Call:

Code Block
languagebash
themeEclipse
curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {API Key}" -X POST --data "customText=Testing CWE Text" http://localhost:8080/threadfix/rest/latest/cwe/79/setCustomText

Sample Output:

Code Block
themeEclipse
{
    "success": true,
    "message": "",
    "responseCode": -1,
    "object": {
        "customText": " Testing CWE Text ",
        "name": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
        "id": 79,
        "CweId": 79
    }
}

Page Tree
rootThreadFix API 3.0 - WIPX