As of December 31st, 2023 ThreadFix 2.X has reached End of Life and is no longer supported. For any further information please contact the Success and Implementation team.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

/rest/cwe/{cweId}/setCustomText

 

Descriptor

Value

HTTP Method

POST

Description

Sets Custom CWE Text for the provided CWE.

Required Permission

Manage Custom CWE Text

Version Introduced2.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:


curl --insecure -H 'Accept: application/json' -X POST --data "customText=Testing CWE Text" http://localhost:8080/threadfix/rest/cwe/79/setCustomText?apiKey={apiKey}

 

Sample Output:


{
    "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
    }
}

  • No labels