Add a custom requirement to a framework instance
curl --request POST \
--url https://api.trycomp.ai/v1/frameworks/{id}/requirements \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Access Review",
"identifier": "10.3",
"description": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Access Review', identifier: '10.3', description: '<string>'})
};
fetch('https://api.trycomp.ai/v1/frameworks/{id}/requirements', 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"
payload = {
"name": "Access Review",
"identifier": "10.3",
"description": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Frameworks
Add a custom requirement to a framework | Comp AI API
Add a custom requirement to a framework instance in Comp AI. Manage SOC 2, ISO 27001, HIPAA, GDPR, and custom framework instances, requirements, scores.
POST
/
v1
/
frameworks
/
{id}
/
requirements
Add a custom requirement to a framework instance
curl --request POST \
--url https://api.trycomp.ai/v1/frameworks/{id}/requirements \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Access Review",
"identifier": "10.3",
"description": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Access Review', identifier: '10.3', description: '<string>'})
};
fetch('https://api.trycomp.ai/v1/frameworks/{id}/requirements', 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"
payload = {
"name": "Access Review",
"identifier": "10.3",
"description": "<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?

