Departments
List Departments
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 Departments
List all Departments satisfying query filters.
GET
/
api
/
v3
/
departments
curl --request GET \
--url https://{account}-{sandboxName}.sandbox.{server}.luccasoftware.com/api/v3/departments
{
"data": {
"items": [
{
"id": 2,
"name": "Administration",
"code": "Administration",
"hierarchy": "/1.0/",
"parentId": "/",
"position": 10000000000000000000,
"sortOrder": 1,
"level": 1,
"isActive": true,
"headID": null,
"head": null,
"users": [
{
"id": 11,
"name": "Daniel Hernandez",
"url": "https://sandbox.ilucca-demo.net/api/v3/users/11"
},
{
"id": 36,
"name": "henri paul",
"url": "https://sandbox.ilucca-demo.net/api/v3/users/36"
}
],
"currentUsers": [
{
"id": 11,
"name": "Daniel Hernandez",
"url": "https://sandbox.ilucca-demo.net/api/v3/users/11"
},
{
"id": 36,
"name": "henri paul",
"url": "https://sandbox.ilucca-demo.net/api/v3/users/36"
}
],
"url": "https://sandbox.ilucca-demo.net/api/v3/departments/2"
}
]
}
}
Query Parameters
{offset},{limit}. Defaults to 0,1000.
Response
200
application/json
OK
Maximum length:
255
Maximum length:
255
Position of the departement in the hierarchical tree
Position of the parent department in the hierarchical tree
Department's general position in the hierarchy
Required range:
10000000000000000000 < x < 100000000000000000000
level of the Department. Deduce from Position.
Order of the current Department among the children of the Parent Department
Required range:
x > 1
ID of the User who is the head of the department
Number of active users in the department
Required range:
x > 0
Was this page helpful?
curl --request GET \
--url https://{account}-{sandboxName}.sandbox.{server}.luccasoftware.com/api/v3/departments
{
"data": {
"items": [
{
"id": 2,
"name": "Administration",
"code": "Administration",
"hierarchy": "/1.0/",
"parentId": "/",
"position": 10000000000000000000,
"sortOrder": 1,
"level": 1,
"isActive": true,
"headID": null,
"head": null,
"users": [
{
"id": 11,
"name": "Daniel Hernandez",
"url": "https://sandbox.ilucca-demo.net/api/v3/users/11"
},
{
"id": 36,
"name": "henri paul",
"url": "https://sandbox.ilucca-demo.net/api/v3/users/36"
}
],
"currentUsers": [
{
"id": 11,
"name": "Daniel Hernandez",
"url": "https://sandbox.ilucca-demo.net/api/v3/users/11"
},
{
"id": 36,
"name": "henri paul",
"url": "https://sandbox.ilucca-demo.net/api/v3/users/36"
}
],
"url": "https://sandbox.ilucca-demo.net/api/v3/departments/2"
}
]
}
}