Add organization assignments
POST
/enterprises/{enterprise}/teams/{enterprise-team}/organizations/add
Assign an enterprise team to multiple organizations.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” enterprise
required
string
The slug version of the enterprise name.
enterprise-team
required
string
The slug version of the enterprise team name. You can also substitute this value with the enterprise team id.
Request Body required
Section titled “ Request Body required ” Media type application/json
object
organization_slugs
required
Organization slug to assign the team to.
Array<string>
Examples
Example default
{ "organization_slugs": [ "github" ]}Responses
Section titled “ Responses ”Successfully assigned the enterprise team to organizations.
Media type application/json
Array<object>
Organization Simple A GitHub organization.
object
login
required
string
id
required
integer
node_id
required
string
url
required
string format: uri
repos_url
required
string format: uri
events_url
required
string format: uri
hooks_url
required
string
issues_url
required
string
members_url
required
string
public_members_url
required
string
avatar_url
required
string
description
required
string
Examples
Example default
[ { "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" }]