Endpoints to manage GitHub Enterprise Team memberships.
6 endpoints tagged enterprise-team-memberships, 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}/memberships
Lists all team members in 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 | Response | yes |
POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/add
Add multiple team members 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. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Successfully added team members. | yes |
POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/remove
Remove multiple team members from 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. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Successfully removed team members. | yes |
GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}
Returns whether the user is a member of the 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. |
username | path | yes | The handle for the GitHub user account. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | User is a member of the enterprise team. | yes |
PUT /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}
Add a team member 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. |
username | path | yes | The handle for the GitHub user account. |
| Status | Description | Has JSON body |
|---|---|---|
| 201 | Successfully added team member | yes |
DELETE /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}
Remove membership of a specific user from a particular team in an enterprise.
| 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. |
username | path | yes | The handle for the GitHub user account. |
| Status | Description | Has JSON body |
|---|---|---|
| 204 | Response | no |
| 403 | Forbidden | yes |