Thing Hierarchy

Represents thing hierarchies

Resource Path:http://<server address>[:<port number>]/ThingHierarchy/v1/ThingHierarchies

Operations

CRUD Operations

HTTP Method Operation URI Scopes
READ Read Metadata of Thing Hierarchy /ThingHierarchy/v1/$metadata <ths>.r
POST Create Thing Hierarchy /v1/ThingHierarchies

<ths>.c

<ohs>.c

GET Read Thing Hierarchy /v1/ThingHierarchies('<thing hierarchy ID>') <ths>.r
READ Read Sub-hierarchy for a Thing /ThingHierarchy/v1/ThingHierarchies('<thing hierarchy ID>')/ThingHierarchyElements?$filter=ThingID eq '<thing ID>' &$inlinecount=allpages&$format=json&sap.appiot.level=1 <ths>.r
GET Read all Thing Hierarchies /v1/ThingHierarchies <ths>.r
DELETE Delete Thing Hierarchy /v1/ThingHierarchies('<thing hierarchy ID>')

<ths>.d

<ohs>.d

UPDATE Update Thing Hierarchy /v1/ThingHierarchies('<thing hierarchy ID>')

<ths>.u

<ohs>.u

Thing Hierarchy Properties

Parameter

Data Type

Maximum Length

Description

HierarchyID string 32 Unique identifier of the thing hierarchy generated by the system.
Name string 255 Name of the thing hierarchy Note:
Descriptions Array of description objects - Description of the thing hierarchy

The descriptive text provided in this field is ignored and is replaced with the descriptive text provided in the Description field of the Thing Hierarchy Description entity.

ExternalID string 255

Thing hierarchy identifier (which is not unique) from an external system. You can create multiple thing hierarchies with the same external ID.

RootThingID string 32

Identifier of the thing in the root element of the thing hierarchy. The thing with parentThingID = 0 is considered as the root thing of the hierarchy. You cannot edit the root thing ID when you create or update a thing hierarchy.

Thing Hierarchy Description Properties

Property Data Type Maximum Length Description
LanguageCode String 2 ISO code of the language of the object description
Description String 255 Description of the thing hierarchy