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

Example of Creating a Hierarchy


This example shows you how to use the hierarchy Web service to create a hierarchy.

Operation

Use the following operation to create a hierarchy:

POST /hierarchy

Sample URL

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

http://myhost.example.com:7017/rs/api/v2/hierarchies

Sample JSON Input

The following is an example of the JSON input:

{
"hierName": "busHierarchy",
"hierType": "BUSINESS",
"company": "CUELLE",
"displayName": "Business Hierarchy",
"description": "Business Hierarchy"
}

Sample JSON Response

The following is an example of the JSON response:

Hierarchy created successfully.
Visit
<link>http://myhost.example.com:7017/rs/api/v2/hierarchies/182003</link>

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