Update a data asset
PATCH
/v1/data-assets/{id}
const url = 'https://api.varman.io/v1/data-assets/example';const options = { method: 'PATCH', 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 PATCH \ --url https://api.varman.io/v1/data-assets/example \ --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" }'Updates fields on a data inventory record. Only the fields sent are changed. Send null for ownerMemberId, reviewerMemberId or vendorId to clear them.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
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