LeRoy,
I was able to accomplish using the following method:
Situation:
Current Group Tree = All Groups > all devices
I want to create a site group called new_group under a new group called subtree_test which will reside under the all devices group. It should ultimately look like:
All Groups > all devices > subtree_test > group_name
URL:
Note: you need to substitute %20 for spaces and %2F for / in the groupPath entries at the end:
https://pcHostname:8182/pc/center/webservice/groups/groupPath/All%20Groups%2Fall%20devices%2Fsubtree_test
Content Type: application/xml
Authorization Type: Basic (I used the admin account)
Method: POST
Body:
<GroupTree path="/All Groups/all devices/subtree_test">
<Group name="group_name" desc="group_description"
inherit="true" type="site" location="North America"
bHourID="99990" timeZone="EST"/>
</GroupTree>
Before REST call:
After REST call:
Troy