Sample - GitHub REST API
GET/enterprises/{enterprise}/teams/{enterprise-team}/organizations

Get organization assignments

Get all organizations assigned to an enterprise team

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

4 parameters
enterprisestringrequired
The slug version of the enterprise name.
enterprise-teamstringrequired
The slug version of the enterprise team name. You can also substitute this value with the enterprise team id.
per_pageintegeroptional
The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
Default:30
pageintegeroptional
The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
Default:1

1 status code
200An array of organizations the team is assigned to
loginstringrequired
idintegerrequired
node_idstringrequired
urlstringrequired
repos_urlstringrequired
events_urlstringrequired
hooks_urlstringrequired
issues_urlstringrequired
members_urlstringrequired
public_members_urlstringrequired
avatar_urlstringrequired
descriptionstringrequired