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

Assign an enterprise team to an organization

Assigns an enterprise team to an organization. Provide the enterprise slug, enterprise team slug or ID, and organization name to create the assignment.

  • 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, or the enterprise team ID.
orgstringrequired
The organization name; matching is not case-sensitive.

1 status code
201Returns the assigned organization as an organization object, including its login, identifiers, API URLs, and description.
loginstringrequired
idintegerrequired
node_idstringrequired
urlstringrequired
repos_urlstringrequired
events_urlstringrequired
hooks_urlstringrequired
issues_urlstringrequired
members_urlstringrequired
public_members_urlstringrequired
avatar_urlstringrequired
descriptionstringrequired

Error handling

enterprise, enterprise-team, and org must identify the enterprise, enterprise team, and organization involved in the assignment. The org value is case-insensitive, and enterprise-team can be either the team's slug or its ID.