PATCH
Govern an asset (owner, environment, criticality)

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Path Parameters

id
string<uuid>
required

Body

application/json

The customer's own judgements about an asset. Every field is optional and an absent one is left unchanged; at least one must be present.

environment
enum<string>
Available options:
unknown,
production,
staging,
development,
test
criticality
enum<string>
Available options:
unknown,
low,
medium,
high,
critical
owner
string | null

An empty string clears the owner.

Response

The updated asset.

The thing being protected. Not a scan and not a build: if a rebuild produced a new asset, every finding would look new and every triage decision would be discarded on deploy.

id
string<uuid>
kind
enum<string>
Available options:
container_image,
filesystem,
repository,
sbom,
vm,
cloud_account
identity
string

The stable, tenant-free key an asset's history hangs from, and the second input to every finding fingerprint. Never displayed as the primary label: name is what a reader sees.

name
string
registry
string | null
repository
string | null
tag
string | null

The container image tag. Not a user label.

last_digest
string | null
operating_system
string | null
attributes
object

Engine-reported metadata TRUSTIVAN has not modelled.

discovery_source
enum<string>

Who asserted this asset exists. The same vocabulary a relationship uses, so one discovery event describes its node and its edges the same way.

Available options:
scan,
collector,
manual,
import
environment
enum<string>

unknown is the default and is honest: nothing infers an environment, and guessing one from an image tag would put a guess on a security surface as though it were a fact.

Available options:
unknown,
production,
staging,
development,
test
criticality
enum<string>

How much the asset matters, independent of what is wrong with it. The prioritisation input severity cannot supply.

Available options:
unknown,
low,
medium,
high,
critical
owner
string | null

A routing label, not a principal. Free text because the owner of a production service is usually a team or a rota rather than one person with a login; nothing authorises against it.

first_seen_at
string<date-time>
last_seen_at
string<date-time>

When the asset was last OBSERVED to exist. Distinct from last_scanned_at, which advances only on scan completion: a collector observes without scanning, and a failed pull scans without observing.

last_scanned_at
string<date-time> | null
archived_at
string<date-time> | null

Absent for an active asset.

archived_reason
string | null
archived_by
string<uuid> | null

Null when a machine principal archived it.

created_at
string<date-time>
updated_at
string<date-time>