curl --request POST \
--url https://api.trycomp.ai/v1/assets \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Production PostgreSQL (AWS RDS)",
"type": "cloud_resource"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Production PostgreSQL (AWS RDS)', type: 'cloud_resource'})
};
fetch('https://api.trycomp.ai/v1/assets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/assets"
payload = {
"name": "Production PostgreSQL (AWS RDS)",
"type": "cloud_resource"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Create an information asset | Comp AI API
Adds an asset to the ePHI inventory with its lifecycle flags (created, received, maintained, transmitted), owner and linked risks. Reusing a sourceKey.
curl --request POST \
--url https://api.trycomp.ai/v1/assets \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Production PostgreSQL (AWS RDS)",
"type": "cloud_resource"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Production PostgreSQL (AWS RDS)', type: 'cloud_resource'})
};
fetch('https://api.trycomp.ai/v1/assets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/assets"
payload = {
"name": "Production PostgreSQL (AWS RDS)",
"type": "cloud_resource"
}
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
Asset name
"Production PostgreSQL (AWS RDS)"
Kind of asset
vendor, cloud_resource, internal_system, workforce_devices, data_flow, physical_media, other "cloud_resource"
What the asset is and how it is used
"Primary application database holding patient records"
Lifecycle status; retired assets drop out of the assessment
active, retired Where the asset lives
"AWS us-east-1"
ePHI is created at this asset
ePHI is received by this asset
ePHI is stored or maintained at this asset
ePHI is transmitted through this asset
What ePHI the asset holds or moves
"Patient demographics, lab results"
Vendor this asset represents, if any
"vnd_abc123def456"
Integration connection this asset was discovered through, if any
"icn_abc123def456"
Member ID of the asset owner
"mem_abc123def456"
Stable suggestion key ("vendor:vnd_x"). Creating with a key that already exists updates that asset instead of duplicating it.
"vendor:vnd_abc123def456"
Risk IDs that apply to this asset. Replaces the full set.
["rsk_abc123def456"]
Response
Was this page helpful?

