Add a catalog threat as a risk on an asset
curl --request POST \
--url https://api.trycomp.ai/v1/hipaa/risk-assessment/risks/from-template \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"assetId": "ast_abc123def456",
"templateId": "ransomware"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({assetId: 'ast_abc123def456', templateId: 'ransomware'})
};
fetch('https://api.trycomp.ai/v1/hipaa/risk-assessment/risks/from-template', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/hipaa/risk-assessment/risks/from-template"
payload = {
"assetId": "ast_abc123def456",
"templateId": "ransomware"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)HIPAA Security Risk Assessment
Add a catalog threat as a risk on an asset | Comp AI API
Creates a register risk from a threat catalog entry, pre-filled with the threat, vulnerability and default rating, linked to the given ePHI asset.
POST
/
v1
/
hipaa
/
risk-assessment
/
risks
/
from-template
Add a catalog threat as a risk on an asset
curl --request POST \
--url https://api.trycomp.ai/v1/hipaa/risk-assessment/risks/from-template \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"assetId": "ast_abc123def456",
"templateId": "ransomware"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({assetId: 'ast_abc123def456', templateId: 'ransomware'})
};
fetch('https://api.trycomp.ai/v1/hipaa/risk-assessment/risks/from-template', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/hipaa/risk-assessment/risks/from-template"
payload = {
"assetId": "ast_abc123def456",
"templateId": "ransomware"
}
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?

