...
*Either 'policyId' or 'policyName' parameter must be provided.
As of 2.8.5:
Sample Call (using policyId):
Code Block |
---|
curl --insecure -H 'content-type: application/x-www-form-urlencoded' -H 'accept: application/json' -H 'Authorization: APIKEY {apikey}' -X POST --data 'policyId=1' http://localhost:8080/threadfix/rest/latest/applications/1/policy/eval |
Sample Call (using policyName):
Code Block |
---|
curl --insecure -H 'content-type: application/x-www-form-urlencoded' -H 'accept: application/json' -H 'Authorization: APIKEY {apikey}' -X POST --data 'policyName=MyPolicy&type=remediation' http://localhost:8080/threadfix/rest/latest/applications/1/policy/eval |
Pre-2.8.5:
Sample Call (using policyId):
...