RelynkLearn
Builder APIConcepts

Relationships

How resources are connected - parts, feeds, locations and sub-meters - and how to walk them.

Relationships connect resources, and resources.related walks them.

RelationshipExample
brick_Has_Partbuilding → levels → rooms (maxDepth: 2)
brick_Feedsair handling unit → terminal units → rooms
rec_Located_Inequipment located in a space
brick_Has_Sub_Meter / brick_Is_Metered_Bymeter hierarchies, and what a meter meters
  • direction: "out" follows the relationship as named; "in" follows it backwards.
  • maxDepth is how many steps to walk; targetTypeKeys keeps only the resources of those types.
  • resourceTypes.relationships shows which relationships a building uses and between which types, so you can plan a walk before making it.
  • truncated: true in the response means the result was cut: narrow the filters.
  • An unknown relationship name is an error (unknown_relationship), not an empty result.