enterprise-team-organizations
Get organization assignments
Get all organizations assigned to an enterprise team
get/enterprises/{enterprise}/teams/{enterprise-team}/organizations
Path parameters
enterprisestring required
The slug version of the enterprise name.
enterprise-teamstring required
The slug version of the enterprise team name. You can also substitute this value with the enterprise team id.
Query parameters
per_pageinteger
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
pageinteger
The page number of the results to fetch. For more information, see "Using pagination in the REST API."
Response
An array of organizations the team is assigned to
Example response
[
{
"login": "github",
"id": 1,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
"url": "https://api.github.com/orgs/github",
"repos_url": "https://api.github.com/orgs/github/repos",
"events_url": "https://api.github.com/orgs/github/events",
"hooks_url": "https://api.github.com/orgs/github/hooks",
"issues_url": "https://api.github.com/orgs/github/issues",
"members_url": "https://api.github.com/orgs/github/members{/member}",
"public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"description": "A great organization"
}
]