Playground

Playground

Relationship

/api/v1/relationships

A generic edge between two entities when no FK fits.

listgetcreatedelete

Schema

FieldTypeNotes
id*uuidServer-assigned ULID with type prefix (e.g. per_…).
tenant_id*stringTenant scope — auto-stamped from the caller's JWT.
app_idstringApp scope. Stamped ONLY when the caller's JWT was minted for a specific Application (integration API keys). Absent for human-user sessions. Filters reads when present.
created_at*date-timeServer stamp.
updated_at*date-timeServer stamp; updated on every patch.
created_byuuidPerson id from the caller's JWT (sub).
updated_byuuidPerson id from the last writer's JWT (sub).
sourcestringProvenance tag — defaults to 'edm'.
source_typeenumfrontend | backend | server | system | apiWhere the write originated. Defaults to 'api'.
is_deletedbooleanSoft-delete flag. Excluded from default list queries.
deleted_atdate-timeStamped when soft-deleted; null otherwise.
deleted_byuuidPerson id who soft-deleted; null otherwise.
schema_versionnumberDocument schema version. Bumped on incompatible writes.
source_iduuidUUID of the source entity (the 'from' end of the directed edge).
source_typestringEntity type name of the source entity — must match an EDM entity type (e.g. Person, TechnologyAsset).
target_iduuidUUID of the target entity (the 'to' end of the directed edge).
target_typestringEntity type name of the target entity. Must match one of the EDM entity type names.
relationship_typestringSemantic label describing the nature of this relationship. Common values include 'manages', 'owns', 'depends_on', 'runs_on', 'mitigates', 'member_of', 'reports_
discovered_bystringSystem that created or discovered the edge — 'manual' for a human, otherwise an integration/discovery engine (e.g. ad_sync, aws_discovery).
propertiesjsonArbitrary key-value metadata on this edge, specific to the relationship type. For example, a 'depends_on' edge might include {'criticality': 'hard', 'protocol':
confidencenumberConfidence score (0.0 to 1.0) indicating how certain the platform is that this relationship is accurate. 1.0 means authoritative (manually created or confirmed)

API

client.relationships.*
Loading manifest…