Hierarchy

Operations related to Areas (Hierarchies)

Retrieves all the areas metadata and configuration available for your company in a hirarchical way

The information provided by this endpoint is useful to build the filters on the stats API or setup the employee profiles on the Employees API.

GEThttps://api.myhappyforce.com/api/v1/public/company/hierarchy
Response

OK

Body
idstring
namestring

Name of the area

childrenarray of Area (object)

sub areas under this one

Request
const response = await fetch('https://api.myhappyforce.com/api/v1/public/company/hierarchy', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "id": "text",
    "name": "text",
    "children": []
  }
]

Last updated