# Returns the list of teams and company users in the company structure **GET /V1/hierarchy/{id}** Returns the list of teams and company users in the company structure. ## Servers - https://magento2.winkelstraat.mac/rest/all: https://magento2.winkelstraat.mac/rest/all () ## Parameters #### Path parameters - **id** (integer) ## Responses ### 200: 200 Success. #### Body Parameters: (array[object]) - **structure_id** (integer) Structure ID. - **entity_id** (integer) Entity ID. - **entity_type** (string) Entity type. - **structure_parent_id** (integer) Structure parent ID. - **extension_attributes** (object) ExtensionInterface class for @see \Magento\Company\Api\Data\HierarchyInterface ### 401: 401 Unauthorized #### Body Parameters: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace ### default: Unexpected error #### Body Parameters: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace [Powered by Bump.sh](https://bump.sh)