Update control trust portal visibility
curl --request POST \
--url https://api.trycomp.ai/v1/trust-portal/controls/{controlId}/trust-settings \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"showOnTrustPortal": false
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({showOnTrustPortal: false})
};
fetch('https://api.trycomp.ai/v1/trust-portal/controls/{controlId}/trust-settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/trust-portal/controls/{controlId}/trust-settings"
payload = { "showOnTrustPortal": False }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "ctl_abc123",
"name": "Access Control Policy",
"showOnTrustPortal": true,
"isOverridden": false,
"templateDefault": true
}Trust Portal
Update control trust portal visibility | Comp AI API
Sets whether a control appears on the public trust portal. The choice is stored per organization, overrides the control template default, and is never reset.
POST
/
v1
/
trust-portal
/
controls
/
{controlId}
/
trust-settings
Update control trust portal visibility
curl --request POST \
--url https://api.trycomp.ai/v1/trust-portal/controls/{controlId}/trust-settings \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"showOnTrustPortal": false
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({showOnTrustPortal: false})
};
fetch('https://api.trycomp.ai/v1/trust-portal/controls/{controlId}/trust-settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/trust-portal/controls/{controlId}/trust-settings"
payload = { "showOnTrustPortal": False }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "ctl_abc123",
"name": "Access Control Policy",
"showOnTrustPortal": true,
"isOverridden": false,
"templateDefault": true
}Authorizations
API key for authentication
Path Parameters
Body
application/json
Whether this control appears on the public trust portal. Setting it overrides the control template default and survives framework version updates.
Example:
false
Response
200 - application/json
Example:
"ctl_abc123"
Example:
"Access Control Policy"
Effective visibility: the organization override when set, otherwise the control template default.
Example:
true
True when the organization has made its own choice instead of inheriting the template default.
Example:
false
The control template default this control inherits while not overridden.
Example:
true
Was this page helpful?

