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

Get organization assignment

Check if an enterprise team is assigned to an organization

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

3 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.
orgstringrequired
The organization name. The name is not case sensitive.

2 status codes
200The team is assigned to the organization
loginstringrequired
idintegerrequired
node_idstringrequired
urlstringrequired
repos_urlstringrequired
events_urlstringrequired
hooks_urlstringrequired
issues_urlstringrequired
members_urlstringrequired
public_members_urlstringrequired
avatar_urlstringrequired
descriptionstringrequired
404The team is not assigned to the organization

Error handling

A 404 is returned: The team is not assigned to the organization.