ZRM Docs
API ReferenceAsset

asset.addRelationship

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
sourceAssetIdstringYesID of the associated source asset
targetAssetIdstringYesID of the associated target asset
relationshipTypeenum(powers, uplinks, communicates_with, backs_up, monitors, controls, houses, connects_to, depends_on)YesRelationship type
metadataobjectNoMetadata

Example

{
  "sourceAssetId": "550e8400-e29b-41d4-a716-446655440000",
  "targetAssetId": "550e8400-e29b-41d4-a716-446655440000",
  "relationshipType": "powers",
  "metadata": null
}

On this page