Link policies to control
POST
/v1/controls/{id}/policies/link
const url = 'https://api.varman.io/v1/controls/example/policies/link?frameworkInstanceId=example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"policyIds":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://api.varman.io/v1/controls/example/policies/link?frameworkInstanceId=example' \ --header 'Content-Type: application/json' \ --data '{ "policyIds": [ "example" ] }'Link policies to a control so auditors and reviewers can trace control implementation back to approved policy evidence.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Query Parameters
Section titled “Query Parameters”frameworkInstanceId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
policyIds
required
Policy IDs to link to the control
Array<string>
Example generated
{ "policyIds": [ "example" ]}