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.

Add Application to Policy - API

/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:

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


Sample Output:


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

www.threadfix.it | www.coalfire.com
Copyright © 2024 Coalfire. All rights reserved.

This Information Security Policy is CoalFire - Public: Distribution of this material is not limited.