Add a data asset to the inventory
POST
/v1/data-assets
const url = 'https://api.varman.io/v1/data-assets';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"Customer CRM records","description":"Contact details of customers used for billing and support","ownerMemberId":"mem_abc123","reviewerMemberId":"mem_def456","dataType":"personal","classification":"public","hostProvider":"AWS","vendorId":"vnd_abc123","location":"eu-west-1","retention":"7 years after contract end","legalBasis":"Contract"}'};
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/data-assets \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "name": "Customer CRM records", "description": "Contact details of customers used for billing and support", "ownerMemberId": "mem_abc123", "reviewerMemberId": "mem_def456", "dataType": "personal", "classification": "public", "hostProvider": "AWS", "vendorId": "vnd_abc123", "location": "eu-west-1", "retention": "7 years after contract end", "legalBasis": "Contract" }'Records a data asset with its owner, data type, classification, hosting provider or vendor, region, retention period and legal basis.
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 data asset
string
Example
Customer CRM recordsdescription
What the data is and why it is processed
string
Example
Contact details of customers used for billing and supportownerMemberId
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_def456dataType
Kind of data held
string
classification
Data classification level
string
hostProvider
Hosting provider as free text
string
Example
AWSvendorId
Vendor ID that hosts this data (null clears it)
object
Example
vnd_abc123location
Storage location or region
string
Example
eu-west-1retention
Retention period
string
Example
7 years after contract endlegalBasis
Legal basis for processing
string
Example
Contract