Get company hierarchy tree

get

/api/v4/search/companies/hierarchy/{id}

This accepts a company ID and returns a tree representation of the company's hierarchy. Each company in the tree is represented as a node.

Versions Supported:

v4

Request

Path Parameters
  • Id of the company record whose hierarchy needs to be retrieved.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : attributes
Type: object
Additional Properties Allowed
Show Source
Nested Schema : nodes
Type: array
Show Source
Nested Schema : HierarchyNode
Type: object
Cyclic reference to oracle.daas.api.alldata.HierarchyNode

404 Response

Requested resource could not be found.
Body ()
Root Schema : schema
Type: object

500 Response

An unexpected error occurred during the request.
Body ()
Root Schema : schema
Type: object
Back to Top

Examples

Example Request:

/api/v4/search/companies/hierarchy/123456
Full List of Company Attributes: Company Attributes

Example Response:

 {"nodes":[
 	{"attributes":
 		{"info_organization_name":"Some Company Inc.",
 		"id":"AAXXYYDD",
 		"company_hier_indicator":"C",
 		"company_hier_aggr_ees_total":"0",
 		"company_hier_aggr_sales_volume":"0"}}, ...(MORE)}
Back to Top