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

Example of Adding a linkTarget Object to a Node as a Child Node


This example shows you how to use the analytics Web service add a linkTarget object to a node as a child node.

Operation

Use the following operation to add a linkTarget object to a node as a child node:

POST /hierarchies/{hierarchyId}/nodes/{nodeId}/linkTargets

Sample URL

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

http://myhost.example.com:7017/rs/api/v2/hierarchies/182003/nodes/182004/linkTargets

Sample JSON Input

The following is an example of the JSON input:

{
"nodeName": "555-444-3301",
"linkTargetType": "edx:omf:serviceagreement:",
"linkTargetURI": "edx:omf:serviceagreement:BS1|AC-B2B-123361-01|555-444-3301",
"linkTargetExternalKey": "BS1|AC-B2B-123361-01|555-444-3301"
}

Sample JSON Response

The following is an example of the JSON response:

Successfully added node.
Visit
<link>http://myhost.example.com:7017/rs/api/v2/hierarchies/182003/nodes/182004/linkTargets?linkTargetType=edx:omf:serviceagreement:</link>

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