Update an asset
PATCH
/v1/assets/{id}
const url = 'https://api.varman.io/v1/assets/example';const options = { method: 'PATCH', 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 PATCH \ --url https://api.varman.io/v1/assets/example \ --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" }'Updates fields on an asset. Only the fields sent are changed. Send null for ownerMemberId or reviewerMemberId 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 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