v1
latestOpenAPI 3.1.02026-07-14159142161.9 KBdepartments (usersService)
Get departments list
Get departments list
get/company/v1/departments
Query parameters
pageinteger
current page
listnumber
how many items should be per page
Response
OK
Example response
{
"data": [
{
"id": 1,
"description": "Test department",
"name": "Frontend department",
"roles": [
"OWNER",
"Employee",
"ADMIN"
]
}
],
"meta": {
"currentPage": 1,
"from": 1,
"lastPage": 1,
"links": [
{
"label": "Previous"
}
],
"path": "https://domain.uspacy.ua/groups/v1/groups",
"perPage": 20,
"to": 2,
"total": 2
}
}