Read Metadata of Thing Hierarchy

With this method, you can retrieve the thing hierarchy metadata.

Request

URI: /ThingHierarchy/v1/$metadata

Operation Type: CRUD

HTTP Method: GET

Permissions: <ths>.r

Request Parameters

None

Request Example

/ThingHierarchy/v1/$metadata

Response

Response Status and Error Codes

Code Description
200 Thing Hierarchy metadata retrieved successfully.

Payload

 <EntityType Name="ThingHierarchyElement">
                <Documentation>
                    <Summary>Details of thing hierarchy element entity type</Summary>
                </Documentation>
                <Key>
                    <PropertyRef Name="HierarchyID"></PropertyRef>
                    <PropertyRef Name="ThingID"></PropertyRef>
                </Key>
                <Property Name="HierarchyID" Type="Edm.String" Nullable="false" MaxLength="32">
                    <Documentation>
                        <Summary>Unique identifier of the thing hierarchy</Summary>
                        <LongDescription>It is automatically generated by the system when creating a thing hierarchy.</LongDescription>
                    </Documentation>
                </Property>
                <Property Name="ThingID" Type="Edm.String" Nullable="false" MaxLength="255">
                    <Documentation>
                        <Summary>Unique identifier of the thing</Summary>
                    </Documentation>
                </Property>
                <Property Name="ThingName" Type="Edm.String" MaxLength="255" sap:creatable="false" sap:updatable="false">
                    <Documentation>
                        <Summary>Name of the thing specified when creating a thing</Summary>
                        <LongDescription>It cannot be edited during create (POST) or update (PATCH) of a thing hierarchy.</LongDescription>
                    </Documentation>
                </Property>
                <Property Name="ThingDescription" Type="Edm.String" MaxLength="60" sap:creatable="false" sap:updatable="false">
                    <Documentation>
                        <Summary>Description of the thing specified when creating a thing</Summary>
                        <LongDescription>It cannot be edited during create (POST) or update (PATCH) of a thing hierarchy.</LongDescription>
                    </Documentation>
                </Property>
                <Property Name="ParentThingID" Type="Edm.String" Nullable="true" MaxLength="255">
                    <Documentation>
                        <Summary>Unique identifier of the parent thing</Summary>
                    </Documentation>
                </Property>
                <Property Name="ParentThingName" Type="Edm.String" MaxLength="255" sap:creatable="false" sap:updatable="false">
                    <Documentation>
                        <Summary>Name of the parent thing specified when creating a thing</Summary>
                        <LongDescription>It cannot be edited during create (POST) or update (PATCH) of a thing hierarchy.</LongDescription>
                    </Documentation>
                </Property>
                <Property Name="ParentThingDescription" Type="Edm.String" MaxLength="60" sap:creatable="false" sap:updatable="false">
                    <Documentation>
                        <Summary>Description of the parent thing specified when creating a thing</Summary>
                        <LongDescription>It cannot be edited during create (POST) or update (PATCH) of a thing hierarchy.</LongDescription>
                    </Documentation>
                </Property>
                <Property Name="Description" Type="Edm.String" MaxLength="255">
                    <Documentation>
                        <Summary>Description of the thing hierarchy element</Summary>
                    </Documentation>
                </Property>
                <Property Name="Operation" Type="Edm.String" MaxLength="6">
                    <Documentation>
                        <Summary>Operation to be performed on the thing hierarchy element</Summary>
                        <LongDescription>Indicates the add or delete operation to be performed on the thing hierarchy element during PATCH request.</LongDescription>
                    </Documentation>
                </Property>
                <Property Name="ThingType" Type="Edm.String" Nullable="true" MaxLength="81">
                    <Documentation>
                        <Summary>Thing type name</Summary>
                    </Documentation>
                </Property>
                <Property Name="ThingTypeDescription" Type="Edm.String" Nullable="true" MaxLength="60">
                    <Documentation>
                        <Summary>Thing type description</Summary>
                    </Documentation>
                </Property>
                <NavigationProperty Name="ThingHierarchy" Relationship="com.sap.appiot.ThingHierarchyElementToHierarchyAssociation" FromRole="ThingHierarchyElement" ToRole="ThingHierarchy"></NavigationProperty>
            </EntityType>
            <EntityType Name="ThingHierarchy">
                <Documentation>
                    <Summary>Details of thing hierarchy entity type</Summary>
                </Documentation>
                <Key>
                    <PropertyRef Name="HierarchyID"></PropertyRef>
                </Key>
                <Property Name="HierarchyID" Type="Edm.String" Nullable="false" MaxLength="32">
                    <Documentation>
                        <Summary>Unique identifier of the thing hierarchy</Summary>
                        <LongDescription>It is automatically generated by the system when creating a thing hierarchy.</LongDescription>
                    </Documentation>
                </Property>
                <Property Name="Name" Type="Edm.String" Nullable="true" MaxLength="255">
                    <Documentation>
                        <Summary>Name of the thing hierarchy</Summary>
                    </Documentation>
                </Property>
                <Property Name="Description" Type="Edm.String" Nullable="true" MaxLength="255" sap:creatable="false" sap:updatable="false">
                    <Documentation>
                        <Summary>Description of the thing hierarchy</Summary>
                        <LongDescription>When creating a thing hierarchy, the text provided in this field is ignored and replaced with the text provided in the description field of the thing hierarchy description entity.</LongDescription>
                    </Documentation>
                </Property>
                <Property Name="ExternalID" Type="Edm.String" Nullable="true" MaxLength="255">
                    <Documentation>
                        <Summary>Thing hierarchy identifier (which is not unique) from an external system </Summary>
                    </Documentation>
                </Property>
                <Property Name="RootThingID" Type="Edm.String" Nullable="true" MaxLength="32">
                    <Documentation>
                        <Summary>Identifier of the thing in root element of the thing hierarchy</Summary>
                    </Documentation>
                </Property>
                <NavigationProperty Name="ThingHierarchyElements" Relationship="com.sap.appiot.ThingHierarchyToElementAssociation" FromRole="ThingHierarchy" ToRole="ThingHierarchyElement"></NavigationProperty>
                <NavigationProperty Name="ThingHierarchyDescriptions" Relationship="com.sap.appiot.ThingHierarchyToDescriptionAssociation" FromRole="ThingHierarchy" ToRole="Description"></NavigationProperty>
            </EntityType>
            <EntityType Name="Description">
                <Documentation>
                    <Summary>Details of the thing hierarchy description entity type</Summary>
                </Documentation>
                <Key>
                    <PropertyRef Name="LanguageCode"></PropertyRef>
                </Key>
                <Property Name="LanguageCode" Type="Edm.String" Nullable="false" MaxLength="2">
                    <Documentation>
                        <Summary>ISO code of the language of the thing hierarchy description</Summary>
                    </Documentation>
                </Property>
                <Property Name="Description" Type="Edm.String" MaxLength="255">
                    <Documentation>
                        <Summary>Description of the thing hierarchy</Summary>
                    </Documentation>
                </Property>
            </EntityType>
            <Association Name="ThingHierarchyToElementAssociation">
                <End Type="com.sap.appiot.ThingHierarchy" Multiplicity="1" Role="ThingHierarchy"></End>
                <End Type="com.sap.appiot.ThingHierarchyElement" Multiplicity="*" Role="ThingHierarchyElement"></End>
            </Association>
            <Association Name="ThingHierarchyElementToHierarchyAssociation">
                <End Type="com.sap.appiot.ThingHierarchyElement" Multiplicity="*" Role="ThingHierarchyElement"></End>
                <End Type="com.sap.appiot.ThingHierarchy" Multiplicity="1" Role="ThingHierarchy"></End>
            </Association>
            <Association Name="ThingHierarchyToDescriptionAssociation">
                <End Type="com.sap.appiot.ThingHierarchy" Multiplicity="1" Role="ThingHierarchy"></End>
                <End Type="com.sap.appiot.Description" Multiplicity="*" Role="Description"></End>
            </Association>
            <EntityContainer Name="ThingHierarchyContainer" m:IsDefaultEntityContainer="true">
                <EntitySet Name="ThingHierarchyElements" EntityType="com.sap.appiot.ThingHierarchyElement">
                    <Documentation>
                        <Summary>Details of thing hierarchy elements entity set</Summary>
                    </Documentation>
                </EntitySet>
                <EntitySet Name="ThingHierarchies" EntityType="com.sap.appiot.ThingHierarchy">
                    <Documentation>
                        <Summary>Details of thing hierarchies entity set</Summary>
                    </Documentation>
                </EntitySet>
                <EntitySet Name="Descriptions" EntityType="com.sap.appiot.Description">
                    <Documentation>
                        <Summary>Details of the thing hierarchy descriptions entity set</Summary>
                    </Documentation>
                </EntitySet>
                <AssociationSet Name="ThingHierarchyToElementAssociation" Association="com.sap.appiot.ThingHierarchyToElementAssociation">
                    <End EntitySet="ThingHierarchies" Role="ThingHierarchy"></End>
                    <End EntitySet="ThingHierarchyElements" Role="ThingHierarchyElement"></End>
                </AssociationSet>
                <AssociationSet Name="ThingHierarchyElementToHierarchyAssociation" Association="com.sap.appiot.ThingHierarchyElementToHierarchyAssociation">
                    <End EntitySet="ThingHierarchyElements" Role="ThingHierarchyElement"></End>
                    <End EntitySet="ThingHierarchies" Role="ThingHierarchy"></End>
                </AssociationSet>
                <AssociationSet Name="ThingHierarchyToDescriptionAssociation" Association="com.sap.appiot.ThingHierarchyToDescriptionAssociation">
                    <End EntitySet="ThingHierarchies" Role="ThingHierarchy"></End>
                    <End EntitySet="Descriptions" Role="Description"></End>
                </AssociationSet>
            </EntityContainer>