← All tags

Enterprise-Team-Organizations API Reference

Endpoints to manage GitHub Enterprise Team organization assignments.

6 endpoints tagged enterprise-team-organizations, each listing its parameters and possible responses. Search or scroll the index below to jump to a specific endpoint.

No endpoints match your search.

Get organization assignments

GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations

Get all organizations assigned to an enterprise team

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.
enterprise-teampathyesThe slug version of the enterprise team name. You can also substitute this value with the enterprise team id.
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."
pagequerynoThe page number of the results to fetch. For more information, see "Using pagination in the REST API."

Responses

StatusDescriptionHas JSON body
200An array of organizations the team is assigned toyes

Add organization assignments

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

Assign an enterprise team to multiple organizations.

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.
enterprise-teampathyesThe slug version of the enterprise team name. You can also substitute this value with the enterprise team id.

Responses

StatusDescriptionHas JSON body
200Successfully assigned the enterprise team to organizations.yes

Remove organization assignments

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

Unassign an enterprise team from multiple organizations.

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.
enterprise-teampathyesThe slug version of the enterprise team name. You can also substitute this value with the enterprise team id.

Responses

StatusDescriptionHas JSON body
204Successfully unassigned the enterprise team from organizations.no

Get organization assignment

GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}

Check if an enterprise team is assigned to an organization

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.
enterprise-teampathyesThe slug version of the enterprise team name. You can also substitute this value with the enterprise team id.
orgpathyesThe organization name. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
200The team is assigned to the organizationyes
404The team is not assigned to the organizationno

Add an organization assignment

PUT /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}

Assign an enterprise team to an organization.

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.
enterprise-teampathyesThe slug version of the enterprise team name. You can also substitute this value with the enterprise team id.
orgpathyesThe organization name. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
201Successfully assigned the enterprise team to the organization.yes

Delete an organization assignment

DELETE /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}

Unassign an enterprise team from an organization.

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.
enterprise-teampathyesThe slug version of the enterprise team name. You can also substitute this value with the enterprise team id.
orgpathyesThe organization name. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
204Successfully unassigned the enterprise team from the organization.no