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

Example of Assigning a User to a Node with Userid in the Payload


This example shows you how to use the analytics Web service to assign a user to a node with userid in the payload.

Operation

Use the following operation to assign a user to a node with userid in the payload:

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

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/users

Sample JSON Input

The following is an example of the JSON input:

<userProfile>
<userId>joesmith</userId>
</userProfile>

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/users?status=assignedToNode</link>

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