Web Services Reference for Oracle Billing Insight > Examples of Web Services > Examples of the Hierarchy Web Service >

Example of Getting a List of Hierarchy Groups


This example shows you how to use the hierarchy Web service to returns a list of groups for the hierarchy that the authenticated user can access.

Operation

Use the following operation to get a list of hierarchy groups for a user:

GET hierarchies/103041/nodes/103042/linkTargets?linkTargetType=groups

Sample URL

The following is a sample URL for this Web service example:

http://myhost.example.com:7017/rs/api/v2/hierarchies/103041/nodes/103042/linkTarget/linkTargetType/groups

XML Response

The following is an example of the XML response:

<hierarchyNodeList>
<count>2</count>
<hierarchyNode>
<nodeId>103042</nodeId>
<hierarchyId>103041</hierarchyId>
<nodeName>Del24410</nodeName>
<linkTargetType>edx:hierarchy:folder:</linkTargetType>
<linkTargetURI>edx:hierarchy:folder:Dutch Home Insurance_Del24410
</ linkTargetURI>
<linkTargetExternalKey>Dutch Home Insurance_Del24410</linkTargetExternalKey>
</hierarchyNode>
<hierarchyNode>
<nodeId>103043</nodeId>
<hierarchyId>103041</hierarchyId>
<parentId>103042</parentId>
<nodeName>GName</nodeName>
<linkTargetType>edx:hierarchy:folder:</linkTargetType>
<linkTargetURI>edx:hierarchy:folder:GID1</linkTargetURI>
<linkTargetExternalKey>GID1</linkTargetExternalKey>
</hierarchyNode>
</hierarchyNodeList>

Web Services Reference for Oracle Billing Insight Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.