此版本的 GitHub Enterprise Server 将于以下日期停止服务 2026-03-17. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持。
REST API 现已经过版本控制。 有关详细信息,请参阅“关于 API 版本控制”。
团队的 REST API 终结点
使用 REST API 在 GitHub 组织中创建和管理团队。
- 团队的 REST API 终结点
- List teams
 - Create a team
 - Get a team by name
 - Update a team
 - Delete a team
 - List team projects
 - Check team permissions for a project
 - Add or update team project permissions
 - Remove a project from a team
 - List team repositories
 - Check team permissions for a repository
 - Add or update team repository permissions
 - Remove a repository from a team
 - List child teams
 - Get a team (Legacy)
 - Update a team (Legacy)
 - Delete a team (Legacy)
 - List team projects (Legacy)
 - Check team permissions for a project (Legacy)
 - Add or update team project permissions (Legacy)
 - Remove a project from a team (Legacy)
 - List team repositories (Legacy)
 - Check team permissions for a repository (Legacy)
 - Add or update team repository permissions (Legacy)
 - Remove a repository from a team (Legacy)
 - List child teams (Legacy)
 - List teams for the authenticated user
 
 - 用于团队讨论备注的 REST API 终结点
- List discussion comments
 - Create a discussion comment
 - Get a discussion comment
 - Update a discussion comment
 - Delete a discussion comment
 - List discussion comments (Legacy)
 - Create a discussion comment (Legacy)
 - Get a discussion comment (Legacy)
 - Update a discussion comment (Legacy)
 - Delete a discussion comment (Legacy)
 
 - 团队讨论的 REST API 终结点
 - 外部组的 REST API 终结点
 - 团队成员的 REST API 终结点
- List team members
 - Get team membership for a user
 - Add or update team membership for a user
 - Remove team membership for a user
 - List team members (Legacy)
 - Get team member (Legacy)
 - Add team member (Legacy)
 - Remove team member (Legacy)
 - Get team membership for a user (Legacy)
 - Add or update team membership for a user (Legacy)
 - Remove team membership for a user (Legacy)