Add an asset to the register
POST
/v1/assets
const url = 'https://api.varman.io/v1/assets';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"Production database","description":"Postgres 16 cluster","type":"hardware","location":"AWS eu-west-1","confidentiality":"low","integrity":"low","availability":"low","ownerMemberId":"mem_abc123","reviewerMemberId":"mem_def456"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/assets \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "name": "Production database", "description": "Postgres 16 cluster", "type": "hardware", "location": "AWS eu-west-1", "confidentiality": "low", "integrity": "low", "availability": "low", "ownerMemberId": "mem_abc123", "reviewerMemberId": "mem_def456" }'Records an asset with its type, location, confidentiality, integrity and availability ratings, owner and reviewer. CIA ratings default to medium.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
Name of the asset
string
Example
Production databasedescription
What the asset is and what it does
string
Example
Postgres 16 clustertype
Kind of asset
string
location
Where it runs or sits
string
Example
AWS eu-west-1confidentiality
Confidentiality rating
string
integrity
Integrity rating
string
availability
Availability rating
string
ownerMemberId
Member ID of the accountable owner (null clears it)
object
Example
mem_abc123reviewerMemberId
Member ID of the periodic reviewer (null clears it)
object
Example
mem_def456