Versions Compared

Key

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

/rest/{version}/policies/{policyId}/application/{applicationId} 


Descriptor

Value

HTTP Method

POST

Description

Adds an application to a policy

Required Permission

Manage Applications

Version Introduced2.5.1

 

Sample Call:

Code Block
themeEclipse
curl --insecure -X POST -H 'Authorization: APIKEY {apiKey}' http://localhost:8080/threadfix/rest/latest/policies/1/application/1
 


Sample Output:


Code Block
themeEclipse
{
  "message": "Application Test has been associated to policy Policy One",
  "success": true,
  "responseCode": -1,
  "object": {
    "policyId": 1,
    "applicationId": 1
  }
}


Page Tree
rootPolicies API