Create compliance control
curl --request POST \
--url https://api.trycomp.ai/v1/controls \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Access Control",
"description": "Manages user access to systems"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Access Control', description: 'Manages user access to systems'})
};
fetch('https://api.trycomp.ai/v1/controls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/controls"
payload = {
"name": "Access Control",
"description": "Manages user access to systems"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Controls
Create compliance control | Comp AI API
Create a custom compliance control and connect it to framework requirements, policies, tasks, and evidence expectations.
POST
/
v1
/
controls
Create compliance control
curl --request POST \
--url https://api.trycomp.ai/v1/controls \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Access Control",
"description": "Manages user access to systems"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Access Control', description: 'Manages user access to systems'})
};
fetch('https://api.trycomp.ai/v1/controls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/controls"
payload = {
"name": "Access Control",
"description": "Manages user access to systems"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
API key for authentication
Body
application/json
Control name
Example:
"Access Control"
Control description
Example:
"Manages user access to systems"
Policy IDs to connect
Task IDs to connect
Requirement mappings
Show child attributes
Show child attributes
Evidence form types to require on this control
Available options:
board_meeting, it_leadership_meeting, risk_committee_meeting, meeting, access_request, whistleblower_report, penetration_test, rbac_matrix, infrastructure_inventory, employee_performance_evaluation, network_diagram, tabletop_exercise, account_types Response
201 - undefined
Was this page helpful?

