Entity Relationship Types


A Relationship Type is a classification of a Relationship between two Entity records. It gives a human-readable way to describe how your Entities relate to each-other.


The most simple Relationship Type is "Parent" and "Child" where you provide the name and reverse-name of "parent of" and "child of". This allows us to create human-readable sentences that describe your records.

Entity A is parent of Entity B. Entity B is child of Entity A.


Some Relationship Types are generated automatically and serve an internal purpose. For example the ID COMMENTS_REPLY is reserved for relating Comment records to their replies. BruceRsrvContains is reserved for our Assembly imports for parent/child relationships that have relative positioning. BruceRsrvInstanceOf is a legacy Assembly Relationship Type.

Relationship Type requests

Below are the basic requests for managing Relationship Types.

Get Relationship Types

Response
interface IResponse {
    Items: {
        // Unique ID for the Relationship Type.
        "ID": string;
        // Human readable name.
        "Name": string;
        // Forward name to use in a sentence.
        "ForwardName": string;
        // Reverse name to use in a sentence.
        "ReverseName": String;

        // Default Style ID.
        // This guides rendering the lines/parabolas between records in 3D.
        "EntityDisplaySettingsID"?: number;
        // Default Entity Type ID.
        // This is used as the default Entity Type when creating Entity data records for Relationships.
        "Relation.EntityType.ID"?: string;
    }[];
}
Javascript example

Create / Update Relationship Type

Request body
interface IBody {
    // Human readable name.
    "Name": string;
    // Forward name to use in a sentence.
    "ForwardName": string;
    // Reverse name to use in a sentence.
    "ReverseName": String;
}
Response
// Body is a JSON object with the same properties as a single item from the list above.
// It returns a single Relationship Type record directly.

Delete Relationship Type

Javascript example