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 /enterprises/{enterprise}/teams/{enterprise-team}/organizations
Get all organizations assigned to an enterprise team
| Name | In | Required | Description |
|---|---|---|---|
enterprise | path | yes | The slug version of the enterprise name. |
enterprise-team | path | yes | The slug version of the enterprise team name. You can also substitute this value with the enterprise team id. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | An array of organizations the team is assigned to | yes |
POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/add
Assign an enterprise team to multiple organizations.
| Name | In | Required | Description |
|---|---|---|---|
enterprise | path | yes | The slug version of the enterprise name. |
enterprise-team | path | yes | The slug version of the enterprise team name. You can also substitute this value with the enterprise team id. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Successfully assigned the enterprise team to organizations. | yes |
POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/remove
Unassign an enterprise team from multiple organizations.
| Name | In | Required | Description |
|---|---|---|---|
enterprise | path | yes | The slug version of the enterprise name. |
enterprise-team | path | yes | The slug version of the enterprise team name. You can also substitute this value with the enterprise team id. |
| Status | Description | Has JSON body |
|---|---|---|
| 204 | Successfully unassigned the enterprise team from organizations. | no |
GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}
Check if an enterprise team is assigned to an organization
| Name | In | Required | Description |
|---|---|---|---|
enterprise | path | yes | The slug version of the enterprise name. |
enterprise-team | path | yes | The slug version of the enterprise team name. You can also substitute this value with the enterprise team id. |
org | path | yes | The organization name. The name is not case sensitive. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | The team is assigned to the organization | yes |
| 404 | The team is not assigned to the organization | no |
PUT /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}
Assign an enterprise team to an organization.
| Name | In | Required | Description |
|---|---|---|---|
enterprise | path | yes | The slug version of the enterprise name. |
enterprise-team | path | yes | The slug version of the enterprise team name. You can also substitute this value with the enterprise team id. |
org | path | yes | The organization name. The name is not case sensitive. |
| Status | Description | Has JSON body |
|---|---|---|
| 201 | Successfully assigned the enterprise team to the organization. | yes |
DELETE /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}
Unassign an enterprise team from an organization.
| Name | In | Required | Description |
|---|---|---|---|
enterprise | path | yes | The slug version of the enterprise name. |
enterprise-team | path | yes | The slug version of the enterprise team name. You can also substitute this value with the enterprise team id. |
org | path | yes | The organization name. The name is not case sensitive. |
| Status | Description | Has JSON body |
|---|---|---|
| 204 | Successfully unassigned the enterprise team from the organization. | no |