departments (usersService)
Get departments list
Get departments list
get/company/v1/departments
Request
- Base URLhttps://{domain}.uspacy.ua
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.