Team
List teams
Parameter | Description |
---|---|
org | String , org to list teams for |
options | Object , Optional request options |
Get team
Parameter | Description |
---|---|
id | String , id of the team |
options | Object , Optional request options |
Create team
In order to create a team, the authenticated user must be a member of :org.
Parameter | Description |
---|---|
org | String , owner/repo name of repo |
body | Object , team details |
options | Object , Optional request options |
Edit team
In order to edit a team, the authenticated user must either be an owner of the org that the team is associated with, or a maintainer of the team.
Parameter | Description |
---|---|
id | String , id of the team |
body | Object , team details |
options | Object , Optional request options |
Delete team
In order to delete a team, the authenticated user must be an owner of the org that the team is associated with, or a maintainer of the team.
Parameter | Description |
---|---|
id | String , id of the team |
options | Object , Optional request options |
List team members
In order to list members in a team, the team must be visible to the authenticated user.
Parameter | Description |
---|---|
id | String , id of the team |
options | Object , Optional request options |
Get team membership
In order to get a user's membership with a team, the team must be visible to the authenticated user.
Parameter | Description |
---|---|
id | String , id of the team |
username | String , username |
options | Object , Optional request options |
Add team membership
If the user is already a member of the team's organization, this endpoint will add the user to the team. In order to add a membership between an organization member and a team, the authenticated user must be an organization owner or a maintainer of the team.
Parameter | Description |
---|---|
id | String , id of the team |
username | String , username |
body | Object , body |
options | Object , Optional request options |
Remove team membership
In order to remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with.
Parameter | Description |
---|---|
id | String , id of the team |
username | String , username |
options | Object , Optional request options |
List team repos
Parameter | Description |
---|---|
id | String , id of the team |
options | Object , Optional request options |
Check if a team manages a repository
Parameter | Description |
---|---|
id | String , id of the team |
full_name | String , owner/repo name of repo |
options | Object , Optional request options |
Add or update team repository
In order to add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. Also, the repository must be owned by the organization, or a direct fork of a repository owned by the organization.
Parameter | Description |
---|---|
id | String , id of the team |
full_name | String , owner/repo name of repo |
body | Object , body |
options | Object , Optional request options |
Remove team repository
In order to remove a repository from a team, the authenticated user must have admin access to the repository or be a maintainer of the team.
Parameter | Description |
---|---|
id | String , id of the team |
full_name | String , owner/repo name of repo |
options | Object , Optional request options |
List user teams
List all of the teams across all of the organizations to which the authenticated user belongs. This method requires user, repo, or read:org scope when authenticating via OAuth.
Parameter | Description |
---|---|
full_name | String , owner/repo name of repo |
options | Object , Optional request options |