Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
/rest/{version}/cicd/passCriteriaGroup/{criteriaGroupId}/update
Descriptor | Value |
---|---|
HTTP Method | PUT |
Description |
Edits the |
Pass Criteria Group. | |
Required Permission | Manage CI/CD |
Version Introduced | 2.8.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 |
---|
name | String | Yes |
Name of severity.
maxAllowed
Integer
No*
New name for the Pass Criteria |
maxIntroduced
Integer
No*
The maximum number of new vulnerabilities in a scan for the Pass Criteria. If no value is specified there is no limit.
* Either maxAllowed or maxIntroduced must be specified
Group. |
Sample Call:
Code Block | theme | Eclipse
---|
curl --insecure -H 'accept: application/json' -H "Authorization: APIKEY {apiKey}" -X PUTPOST --data 'severity=CRITICAL&maxAllowed=10&maxIntroduced=10name=Edited' http://localhost:8080/threadfix/rest/latest//cicd/passCriteriaGroup/16/update |
Sample Output:
Code Block | theme | Eclipse
---|
{ "message": "", "success": true, "responseCode": -1, "object": "Pass Criteria Group updated successfully", "links": [ { "name": "list", "href": "http://localhost:8080/threadfix/rest/latest/cicd/passCriteriaGroup/", "method": "GET" }, { "name": "detail", "href": "http://localhost:8080/threadfix/rest/latest/cicd/passCriteriaGroup/16/detail", "method": "GET" }, { "name": "create", "href": "http://localhost:8080/threadfix/rest/latest/cicd/passCriteriaGroup/create", "method": "POST" }, { "name": "update", "href": "http://localhost:8080/threadfix/rest/latest/cicd/passCriteriaGroup/16/update", "method": "PUT" }, { "name": "delete", "href": "http://localhost:8080/threadfix/rest/latest/cicd/passCriteriaGroup/16/delete", "method": "DELETE" } ] } |
Page Tree | ||
---|---|---|
|