Update a team (Legacy)
Deprecated**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/[email protected]/rest/reference/teams#update-a-team) endpoint. To edit a team, the authenticated user must either be an organization owner or a team maintainer. **Note:** With nested teams, the `privacy` for parent teams cannot be `secret`.
/teams/{team_id}- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- team_id integerrequired
Body Params
requiredThe description of the team.
The name of the team.
The ID of a team to set as the parent team.
**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \* `pull` - team members can pull, but not push to or administer newly-added repositories. \* `push` - team members can pull and push, but not administer newly-added repositories. \* `admin` - team members can pull, push and administer newly-added repositories.
The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: **For a non-nested team:** \* `secret` - only visible to organization owners and members of this team. \* `closed` - visible to all members of this organization. **For a parent or child team:** \* `closed` - visible to all members of this organization.
Responses
Response
Example: 2017-07-14T16:53:42Z
Example: A great team.
Example: https://github.com/orgs/rails/teams/core
Unique identifier of the team
Example: 42
Distinguished Name (DN) that team maps to within LDAP environment
Example: uid=example,ou=users,dc=github,dc=com
Example: 3
Example: https://api.github.com/organizations/1/team/1/members{/member}
Name of the team
Example: Developers
Example: MDQ6VGVhbTE=
organization Organization Full objectrequiredOrganization Full
Organization Full
Example: https://github.com/images/error/octocat_happy.gif
Example: [email protected]
Example: https://github.com/blog
Example: 8
Example: GitHub
Example: 2008-01-14T04:33:35Z
Example: A great organization
Example: 10000
Example: [email protected]
Example: https://api.github.com/orgs/github/events
Example: 20
Example: 0
Example: true
Example: true
Example: https://api.github.com/orgs/github/hooks
Example: https://github.com/octocat
Example: 1
Example: true
Example: https://api.github.com/orgs/github/issues
Example: San Francisco
Example: github
Example: all
Example: true
Example: true
Example: true
Example: true
Example: true
Example: true
Example: true
Example: false
Example: https://api.github.com/orgs/github/members{/member}
Example: github
Example: MDEyOk9yZ2FuaXphdGlvbjE=
Example: 100
plan objectoptional
Example: 81
Example: 1
Example: https://api.github.com/orgs/github/public_members{/member}
Example: 2
Example: https://api.github.com/orgs/github/repos
Example: 100
Example: github
Example: true
Example: Organization
Example: https://api.github.com/orgs/github
parent Team Simple objectoptionalnullable Groups of organization members that gives permissions on specified repositories.
Groups of organization members that gives permissions on specified repositories.
Description of the team
Example: A great team.
Example: https://github.com/orgs/rails/teams/core
Unique identifier of the team
Example: 1
Distinguished Name (DN) that team maps to within LDAP environment
Example: uid=example,ou=users,dc=github,dc=com
Example: https://api.github.com/organizations/1/team/1/members{/member}
Name of the team
Example: Justice League
Example: MDQ6VGVhbTE=
Permission that the team will have for its repositories
Example: admin
The level of privacy this team should have
Example: closed
Example: https://api.github.com/organizations/1/team/1/repos
Example: justice-league
URL for the team
Example: https://api.github.com/organizations/1/team/1
Permission that the team will have for its repositories
Example: push
The level of privacy this team should have
Example: closed
Example: 10
Example: https://api.github.com/organizations/1/team/1/repos
Example: justice-league
Example: 2017-08-17T12:37:15Z
URL for the team
Example: https://api.github.com/organizations/1/team/1
Response
Example: 2017-07-14T16:53:42Z
Example: A great team.
Example: https://github.com/orgs/rails/teams/core
Unique identifier of the team
Example: 42
Distinguished Name (DN) that team maps to within LDAP environment
Example: uid=example,ou=users,dc=github,dc=com
Example: 3
Example: https://api.github.com/organizations/1/team/1/members{/member}
Name of the team
Example: Developers
Example: MDQ6VGVhbTE=
organization Organization Full objectrequiredOrganization Full
Organization Full
Example: https://github.com/images/error/octocat_happy.gif
Example: [email protected]
Example: https://github.com/blog
Example: 8
Example: GitHub
Example: 2008-01-14T04:33:35Z
Example: A great organization
Example: 10000
Example: [email protected]
Example: https://api.github.com/orgs/github/events
Example: 20
Example: 0
Example: true
Example: true
Example: https://api.github.com/orgs/github/hooks
Example: https://github.com/octocat
Example: 1
Example: true
Example: https://api.github.com/orgs/github/issues
Example: San Francisco
Example: github
Example: all
Example: true
Example: true
Example: true
Example: true
Example: true
Example: true
Example: true
Example: false
Example: https://api.github.com/orgs/github/members{/member}
Example: github
Example: MDEyOk9yZ2FuaXphdGlvbjE=
Example: 100
plan objectoptional
Example: 81
Example: 1
Example: https://api.github.com/orgs/github/public_members{/member}
Example: 2
Example: https://api.github.com/orgs/github/repos
Example: 100
Example: github
Example: true
Example: Organization
Example: https://api.github.com/orgs/github
parent Team Simple objectoptionalnullable Groups of organization members that gives permissions on specified repositories.
Groups of organization members that gives permissions on specified repositories.
Description of the team
Example: A great team.
Example: https://github.com/orgs/rails/teams/core
Unique identifier of the team
Example: 1
Distinguished Name (DN) that team maps to within LDAP environment
Example: uid=example,ou=users,dc=github,dc=com
Example: https://api.github.com/organizations/1/team/1/members{/member}
Name of the team
Example: Justice League
Example: MDQ6VGVhbTE=
Permission that the team will have for its repositories
Example: admin
The level of privacy this team should have
Example: closed
Example: https://api.github.com/organizations/1/team/1/repos
Example: justice-league
URL for the team
Example: https://api.github.com/organizations/1/team/1
Permission that the team will have for its repositories
Example: push
The level of privacy this team should have
Example: closed
Example: 10
Example: https://api.github.com/organizations/1/team/1/repos
Example: justice-league
Example: 2017-08-17T12:37:15Z
URL for the team
Example: https://api.github.com/organizations/1/team/1
Forbidden
Resource not found
Validation failed