Skip to content

Update an asset

PATCH
/v1/assets/{id}
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.

id
required
string
X-Organization-Id
string
Media typeapplication/json
object
name

Name of the asset

string

Example

Production database
description

What the asset is and what it does

string

Example

Postgres 16 cluster
type

Kind of asset

string
Allowed values: hardware software cloud_resource network data_store other
location

Where it runs or sits

string

Example

AWS eu-west-1
confidentiality

Confidentiality rating

string
Allowed values: low medium high
integrity

Integrity rating

string
Allowed values: low medium high
availability

Availability rating

string
Allowed values: low medium high
ownerMemberId

Member ID of the accountable owner (null clears it)

object

Example

mem_abc123
reviewerMemberId

Member ID of the periodic reviewer (null clears it)

object

Example

mem_def456