v68

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.3 MB
enterprise-team-organizations

Add organization assignments

Assign an enterprise team to multiple organizations.

post/enterprises/{enterprise}/teams/{enterprise-team}/organizations/add

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.

Request body

organization_slugsstring[] required

Organization slug to assign the team to.

Response

Successfully assigned the enterprise team to organizations.

loginstring required
idinteger required
node_idstring required
urlstring uri required
repos_urlstring uri required
events_urlstring uri required
hooks_urlstring required
issues_urlstring required
members_urlstring required
public_members_urlstring required
avatar_urlstring required
descriptionstring nullable required

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"
  }
]