Link policies to control
curl --request POST \
--url https://api.trycomp.ai/v1/controls/{id}/policies/link \
--header 'Content-Type: application/json' \
--data '
{
"policyIds": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({policyIds: ['<string>']})
};
fetch('https://api.trycomp.ai/v1/controls/{id}/policies/link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/controls/{id}/policies/link"
payload = { "policyIds": ["<string>"] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Controls
Link policies to control | Comp AI API
Link policies to a control so auditors and reviewers can trace control implementation back to approved policy evidence.
POST
/
v1
/
controls
/
{id}
/
policies
/
link
Link policies to control
curl --request POST \
--url https://api.trycomp.ai/v1/controls/{id}/policies/link \
--header 'Content-Type: application/json' \
--data '
{
"policyIds": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({policyIds: ['<string>']})
};
fetch('https://api.trycomp.ai/v1/controls/{id}/policies/link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/controls/{id}/policies/link"
payload = { "policyIds": ["<string>"] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Was this page helpful?

