Map organization controls to an ISMS document
curl --request POST \
--url https://api.trycomp.ai/v1/isms/documents/{id}/controls \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"controlIds": [
"ctl_abc123def456",
"ctl_ghi789jkl012"
]
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({controlIds: ['ctl_abc123def456', 'ctl_ghi789jkl012']})
};
fetch('https://api.trycomp.ai/v1/isms/documents/{id}/controls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/isms/documents/{id}/controls"
payload = { "controlIds": ["ctl_abc123def456", "ctl_ghi789jkl012"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)ISMS
Map organization controls to an ISMS document | Comp AI API
Links existing organization controls to an ISMS document by control id. Additive and idempotent — re-linking is a no-op. Returns a confirmation message.
POST
/
v1
/
isms
/
documents
/
{id}
/
controls
Map organization controls to an ISMS document
curl --request POST \
--url https://api.trycomp.ai/v1/isms/documents/{id}/controls \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"controlIds": [
"ctl_abc123def456",
"ctl_ghi789jkl012"
]
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({controlIds: ['ctl_abc123def456', 'ctl_ghi789jkl012']})
};
fetch('https://api.trycomp.ai/v1/isms/documents/{id}/controls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/isms/documents/{id}/controls"
payload = { "controlIds": ["ctl_abc123def456", "ctl_ghi789jkl012"] }
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?

