Skip to content

Full org chart for the tenant (admin view).

GET
/admin/org-chart
curl --request GET \
--url https://api.gospl.example/v1/admin/org-chart \
--header 'Authorization: Bearer <token>'

OK

Media type application/json
Array<object>
object
user
required
object
id
required
string format: uuid
name
required
string
jobTitle
string
team
string
managerId
required
One of:
string format: uuid
Example generated
[
{
"user": {
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"jobTitle": "example",
"team": "example"
},
"managerId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
]

Missing/invalid credentials.

Media type application/json
object
code
required
string
message
required
string
Example generated
{
"code": "example",
"message": "example"
}

Not an admin, or cross-tenant.

Media type application/json
object
code
required
string
message
required
string
Example generated
{
"code": "example",
"message": "example"
}