Unlink controls from a requirement on a framework instance
curl --request DELETE \
--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: 'DELETE',
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.delete(url, json=payload, headers=headers)
print(response.text)Frameworks
Unlink controls from a requirement on a | Comp AI API
Removes control↔requirement links on this framework instance. Works for platform and custom requirements. Idempotent — returns the number of links removed.
DELETE
/
v1
/
frameworks
/
{id}
/
requirements
/
{requirementKey}
/
controls
/
link
Unlink controls from a requirement on a framework instance
curl --request DELETE \
--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: 'DELETE',
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.delete(url, json=payload, headers=headers)
print(response.text)Authorizations
API key for authentication
Path Parameters
Platform requirement ID or custom requirement ID
Body
application/json
Org Control IDs whose link to this requirement should be removed on this framework instance
Response
200
Was this page helpful?

