Hierarchy Resource
get
Authorizations
SessionIdstringRequired
SessionId
Path parameters
hierarchyIdstringRequiredExample:
64f8a0e2d5b7c9a1e3f4a5b6Responses
200
OK
*/*
idstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6parentIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6namestringOptional
siloIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6expectedEmployeesinteger · 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:
64f8a0e2d5b7c9a1e3f4a5b6Body
idstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6parentIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6namestringOptional
siloIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6expectedEmployeesinteger · int32Optional
activeEmployeesinteger · int32Optional
resetAssignmentsbooleanOptional
Responses
200
OK
*/*
idstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6parentIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6namestringOptional
siloIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6expectedEmployeesinteger · 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:
64f8a0e2d5b7c9a1e3f4a5b6Responses
200
OK
*/*
idstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6parentIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6namestringOptional
siloIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6expectedEmployeesinteger · 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:
64f8a0e2d5b7c9a1e3f4a5b6parentIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6namestringOptional
siloIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6expectedEmployeesinteger · 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:
64f8a0e2d5b7c9a1e3f4a5b6parentIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6namestringOptional
siloIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6expectedEmployeesinteger · int32Optional
activeEmployeesinteger · int32Optional
resetAssignmentsbooleanOptional
Responses
200
OK
*/*
idstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6parentIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6namestringOptional
siloIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6expectedEmployeesinteger · 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