Skip to content

Add organization assignments

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

Assign an enterprise team to multiple organizations.

API method documentation

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.

Media type application/json
object
organization_slugs
required

Organization slug to assign the team to.

Array<string>
Examples
Example default
{
"organization_slugs": [
"github"
]
}

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