Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Hierarchy Resource

get
Authorizations
SessionIdstringRequired

SessionId

Path parameters
hierarchyIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
200

OK

*/*
idstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
parentIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
namestringOptional
siloIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
expectedEmployeesinteger · int32Optional
activeEmployeesinteger · int32Optional
resetAssignmentsbooleanOptional
get/api/v1/company/hierarchy/{hierarchyId}
GET /api/v1/company/hierarchy/{hierarchyId} HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
200

OK

{
  "id": "64f8a0e2d5b7c9a1e3f4a5b6",
  "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "name": "text",
  "children": [
    {
      "id": "64f8a0e2d5b7c9a1e3f4a5b6",
      "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
      "name": "text",
      "children": [
        {
          "id": "64f8a0e2d5b7c9a1e3f4a5b6",
          "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
          "name": "text",
          "children": [
            "[Circular Reference]"
          ],
          "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
          "expectedEmployees": 1,
          "activeEmployees": 1,
          "resetAssignments": true
        }
      ],
      "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
      "expectedEmployees": 1,
      "activeEmployees": 1,
      "resetAssignments": true
    }
  ],
  "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "expectedEmployees": 1,
  "activeEmployees": 1,
  "resetAssignments": true
}
put
Authorizations
SessionIdstringRequired

SessionId

Path parameters
hierarchyIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Body
idstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
parentIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
namestringOptional
siloIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
expectedEmployeesinteger · int32Optional
activeEmployeesinteger · int32Optional
resetAssignmentsbooleanOptional
Responses
200

OK

*/*
idstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
parentIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
namestringOptional
siloIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
expectedEmployeesinteger · int32Optional
activeEmployeesinteger · int32Optional
resetAssignmentsbooleanOptional
put/api/v1/company/hierarchy/{hierarchyId}
PUT /api/v1/company/hierarchy/{hierarchyId} HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 625

{
  "id": "64f8a0e2d5b7c9a1e3f4a5b6",
  "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "name": "text",
  "children": [
    {
      "id": "64f8a0e2d5b7c9a1e3f4a5b6",
      "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
      "name": "text",
      "children": [
        {
          "id": "64f8a0e2d5b7c9a1e3f4a5b6",
          "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
          "name": "text",
          "children": [
            "[Circular Reference]"
          ],
          "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
          "expectedEmployees": 1,
          "activeEmployees": 1,
          "resetAssignments": true
        }
      ],
      "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
      "expectedEmployees": 1,
      "activeEmployees": 1,
      "resetAssignments": true
    }
  ],
  "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "expectedEmployees": 1,
  "activeEmployees": 1,
  "resetAssignments": true
}
200

OK

[
  {
    "id": "64f8a0e2d5b7c9a1e3f4a5b6",
    "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
    "name": "text",
    "children": [
      {
        "id": "64f8a0e2d5b7c9a1e3f4a5b6",
        "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
        "name": "text",
        "children": [
          {
            "id": "64f8a0e2d5b7c9a1e3f4a5b6",
            "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
            "name": "text",
            "children": "[Circular Reference]",
            "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
            "expectedEmployees": 1,
            "activeEmployees": 1,
            "resetAssignments": true
          }
        ],
        "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
        "expectedEmployees": 1,
        "activeEmployees": 1,
        "resetAssignments": true
      }
    ],
    "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
    "expectedEmployees": 1,
    "activeEmployees": 1,
    "resetAssignments": true
  }
]
delete
Authorizations
SessionIdstringRequired

SessionId

Path parameters
hierarchyIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
200

OK

*/*
idstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
parentIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
namestringOptional
siloIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
expectedEmployeesinteger · int32Optional
activeEmployeesinteger · int32Optional
resetAssignmentsbooleanOptional
delete/api/v1/company/hierarchy/{hierarchyId}
DELETE /api/v1/company/hierarchy/{hierarchyId} HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
200

OK

[
  {
    "id": "64f8a0e2d5b7c9a1e3f4a5b6",
    "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
    "name": "text",
    "children": [
      {
        "id": "64f8a0e2d5b7c9a1e3f4a5b6",
        "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
        "name": "text",
        "children": [
          {
            "id": "64f8a0e2d5b7c9a1e3f4a5b6",
            "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
            "name": "text",
            "children": "[Circular Reference]",
            "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
            "expectedEmployees": 1,
            "activeEmployees": 1,
            "resetAssignments": true
          }
        ],
        "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
        "expectedEmployees": 1,
        "activeEmployees": 1,
        "resetAssignments": true
      }
    ],
    "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
    "expectedEmployees": 1,
    "activeEmployees": 1,
    "resetAssignments": true
  }
]
get
Authorizations
SessionIdstringRequired

SessionId

Responses
200

OK

*/*
idstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
parentIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
namestringOptional
siloIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
expectedEmployeesinteger · int32Optional
activeEmployeesinteger · int32Optional
resetAssignmentsbooleanOptional
get/api/v1/company/hierarchy
GET /api/v1/company/hierarchy HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
200

OK

[
  {
    "id": "64f8a0e2d5b7c9a1e3f4a5b6",
    "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
    "name": "text",
    "children": [
      {
        "id": "64f8a0e2d5b7c9a1e3f4a5b6",
        "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
        "name": "text",
        "children": [
          {
            "id": "64f8a0e2d5b7c9a1e3f4a5b6",
            "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
            "name": "text",
            "children": "[Circular Reference]",
            "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
            "expectedEmployees": 1,
            "activeEmployees": 1,
            "resetAssignments": true
          }
        ],
        "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
        "expectedEmployees": 1,
        "activeEmployees": 1,
        "resetAssignments": true
      }
    ],
    "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
    "expectedEmployees": 1,
    "activeEmployees": 1,
    "resetAssignments": true
  }
]
post
Authorizations
SessionIdstringRequired

SessionId

Body
idstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
parentIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
namestringOptional
siloIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
expectedEmployeesinteger · int32Optional
activeEmployeesinteger · int32Optional
resetAssignmentsbooleanOptional
Responses
200

OK

*/*
idstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
parentIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
namestringOptional
siloIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
expectedEmployeesinteger · int32Optional
activeEmployeesinteger · int32Optional
resetAssignmentsbooleanOptional
post/api/v1/company/hierarchy
POST /api/v1/company/hierarchy HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 625

{
  "id": "64f8a0e2d5b7c9a1e3f4a5b6",
  "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "name": "text",
  "children": [
    {
      "id": "64f8a0e2d5b7c9a1e3f4a5b6",
      "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
      "name": "text",
      "children": [
        {
          "id": "64f8a0e2d5b7c9a1e3f4a5b6",
          "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
          "name": "text",
          "children": [
            "[Circular Reference]"
          ],
          "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
          "expectedEmployees": 1,
          "activeEmployees": 1,
          "resetAssignments": true
        }
      ],
      "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
      "expectedEmployees": 1,
      "activeEmployees": 1,
      "resetAssignments": true
    }
  ],
  "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "expectedEmployees": 1,
  "activeEmployees": 1,
  "resetAssignments": true
}
200

OK

[
  {
    "id": "64f8a0e2d5b7c9a1e3f4a5b6",
    "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
    "name": "text",
    "children": [
      {
        "id": "64f8a0e2d5b7c9a1e3f4a5b6",
        "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
        "name": "text",
        "children": [
          {
            "id": "64f8a0e2d5b7c9a1e3f4a5b6",
            "parentId": "64f8a0e2d5b7c9a1e3f4a5b6",
            "name": "text",
            "children": "[Circular Reference]",
            "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
            "expectedEmployees": 1,
            "activeEmployees": 1,
            "resetAssignments": true
          }
        ],
        "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
        "expectedEmployees": 1,
        "activeEmployees": 1,
        "resetAssignments": true
      }
    ],
    "siloId": "64f8a0e2d5b7c9a1e3f4a5b6",
    "expectedEmployees": 1,
    "activeEmployees": 1,
    "resetAssignments": true
  }
]

Last updated