Entity Relationships
An Entity Relationship record is a connection between two Entity records. It can be used to retrieve a hierarchy of records, draw the connections between records in 3D, and to view the hierarchy as a 2D diagram.
It's recommended to read the Relationship Type docs here first.
When requesting Entity records using v3/entity/{entity_id} or v3/entity/entities, you can include the query param ?$expand=relation to include child Relationship records for the returned Entity records in the response. They will be inside Bruce/Relations in the response JSON.
Relationship requests
Below are the basic requests for managing Relationships.
Get Entity Relationships
Get Entity Relationships by Type
Update Relationship
Update Relationship
Create Relationships
Update Relationship
Delete Relationships
Experimental requests
To get the top-level Entity for for a given Entity ID and Relationship Type, you can perform the below request.
Get top-level Entity for Entity and Relationship Type
Here is how you can request a full Entity tree from a given starting Entity. Avoid calling this request for circular paths, which can be detected with the above get-top request.