Jump to: navigation, search

Query Business Hierarchy

Method

GET

Syntax

 
/grs/v1/tenant/{tenantId}/businesshierarchy

Request Body

N/A

Response Body

 
{   
   "nodes":[   
      {   
         "nodeId":346,
         "name":"ACME Solution",
         "children":[   
            {   
               "nodeId":458,
               "name":"Financial Department",
               "children":null
            },
            {   
               "nodeId":351,
               "name":"Sales",
               "children":[   
                  {   
                     "nodeId":353,
                     "name":"Outbound",
                     "children":null
                  }
               ],
            },
            {   
               "nodeId":457,
               "name":"Sales Department",
               "children":null
            }
         ],
      }
   ]
}

HTTP Status Codes

  • 200 OK—Response body provided
  • 401 Unauthorized—APIToken not valid
  • 403 Forbidden—User does not have permission for the specified tenant.
  • 503—Service Unavailable

Notes

Will return the list of nodes that the userid has permission to view.

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on May 16, 2017, at 00:20.