Link existing org controls to a requirement
curl --request POST \
--url https://api.trycomp.ai/v1/frameworks/{id}/requirements/{requirementKey}/controls/link \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"controlIds": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({controlIds: ['<string>']})
};
fetch('https://api.trycomp.ai/v1/frameworks/{id}/requirements/{requirementKey}/controls/link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/frameworks/{id}/requirements/{requirementKey}/controls/link"
payload = { "controlIds": ["<string>"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Frameworks
Link existing org controls to a requirement | Comp AI API
Link existing org controls to a requirement in Comp AI. Manage SOC 2, ISO 27001, HIPAA, GDPR, and custom framework instances, requirements, scores, and sync.
POST
/
v1
/
frameworks
/
{id}
/
requirements
/
{requirementKey}
/
controls
/
link
Link existing org controls to a requirement
curl --request POST \
--url https://api.trycomp.ai/v1/frameworks/{id}/requirements/{requirementKey}/controls/link \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"controlIds": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({controlIds: ['<string>']})
};
fetch('https://api.trycomp.ai/v1/frameworks/{id}/requirements/{requirementKey}/controls/link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/frameworks/{id}/requirements/{requirementKey}/controls/link"
payload = { "controlIds": ["<string>"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Was this page helpful?

