Enable or disable the trust portal
curl --request PUT \
--url https://api.trycomp.ai/v1/trust-portal/settings/toggle \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"enabled": true
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true})
};
fetch('https://api.trycomp.ai/v1/trust-portal/settings/toggle', 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/settings/toggle"
payload = { "enabled": True }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Trust Portal
Enable or disable the trust portal | Comp AI API
Enable or disable the trust portal in Comp AI. Configure the live Trust Center, custom domain, public overview, FAQs, compliance resources, documents.
PUT
/
v1
/
trust-portal
/
settings
/
toggle
Enable or disable the trust portal
curl --request PUT \
--url https://api.trycomp.ai/v1/trust-portal/settings/toggle \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"enabled": true
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true})
};
fetch('https://api.trycomp.ai/v1/trust-portal/settings/toggle', 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/settings/toggle"
payload = { "enabled": True }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Authorizations
API key for authentication
Body
application/json
Whether the public trust portal is published, plus its contact
Response
200 - undefined
Was this page helpful?

