Departments
List Departements as a tree
Organization Structure API
- Axis-sections
- Departments
- Legal-Units
- Establishments
Core HR API
- Employees Directory
- Guides
Cleemy Expenses API
- Expense-temp-items
- Expense-claims
- Expense-claim-items
Timmi Absences API
- Leaves
- Leave-requests
- Sick-leaves
- Imports
- Guides
Timmi Office API
- User-locations
- Work-locations
Timmi Project API
- Clients
- Projects
- Project services
- Organizations
- Financials
Timmi Settings API
- UserDates
- Workcycle-exceptions
- Working-time-arrangement
Timmi Timesheet API
- Time-entries
- Timesheets
- Reports
- Guides
Pagga Mealvouchers API
- Statutory
- Computation
Pagga Remuneration API
- Fixed-natures
- Fixed-items
- Variable-natures
- Variable-items
Poplee Training API
- Training-demands
- Realized-trainings
Departments
List Departements as a tree
List all departments as a tree. Remark: first node is always empty and represents the starting point of the tree as multiple departments might be set to the highest level.
GET
/
api
/
v3
/
departments
/
tree
curl --request GET \
--url https://{account}-{sandboxName}.sandbox.{server}.luccasoftware.com/api/v3/departments/tree
{
"data": {
"node": null,
"children": [
{
"node": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"children": [
"<any>"
]
}
]
}
}
Response
200
application/json
OK
Root department. Always null.
Was this page helpful?
curl --request GET \
--url https://{account}-{sandboxName}.sandbox.{server}.luccasoftware.com/api/v3/departments/tree
{
"data": {
"node": null,
"children": [
{
"node": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"children": [
"<any>"
]
}
]
}
}