Is there a rest api which i can use to fetch the sub teams under a parent team
Is there a rest api which i can use to fetch the sub teams under a parent team
Hey Daniel!
The REST API does not include team hierarchy at this time. We’ve submitted a feature request to incorporate this.
Looks like this is still missing? I could really use this right now.
(at this point I need 10 characters)
Hey @bill.marshall, thanks for raising this here.
The Public Teams API allows you to set a Parent team when creating teams. Check the full documentation here.
I don’t see the parent parameter in the docs, I only see:
name
description
default_role
And even if the parent is set when creating the team, I still don’t see a way to query the subteams from a parent team.
This feature is in EA, hence not yet documented. You can use the “parent” key in the request, and look for the same in the response. It looks like this:
{
“team”: {
“type”: “team”,
“name”: “Team With Parent”,
“description”: “Team With Parent”,
“parent”: {
“id”: “PD3Q086”,
“type”: “team”
}
}
}