此版本的 GitHub Enterprise Server 将于以下日期停止服务 2026-08-25. 已停止发布的版本不受支持。 即使针对重大安全问题,也不会发布补丁。 若要获得更好的性能、改进的安全性和 GitHub Enterprise Server 中的新功能,请参阅升级过程的 Overview。 如需升级帮助,请联系 GitHub Enterprise 支持。
REST API 现已开始进行版本化。 有关详细信息,请参阅“关于 API 版本控制”。
适用于组织的 REST API 终结点
使用 REST API 控制并管理你所有的 GitHub 组织。
- 适用于组织的 REST API 终结点, 1 of 12
- List organizations, 1 of 9
- Get an organization, 2 of 9
- Update an organization, 3 of 9
- Delete an organization, 4 of 9
- Get the audit log for an organization, 5 of 9
- List app installations for an organization, 6 of 9
- Enable or disable a security feature for an organization, 7 of 9
- List organizations for the authenticated user, 8 of 9
- List organizations for a user, 9 of 9
- 组织推送规则绕过请求的 REST API 终结点, 2 of 12
- 自定义属性的 REST API 终结点, 3 of 12
- Get all custom properties for an organization, 1 of 7
- Create or update custom properties for an organization, 2 of 7
- Get a custom property for an organization, 3 of 7
- Create or update a custom property for an organization, 4 of 7
- Remove a custom property for an organization, 5 of 7
- List custom property values for organization repositories, 6 of 7
- Create or update custom property values for organization repositories, 7 of 7
- 适用于自定义存储库角色的 REST API 终结点, 4 of 12
- Closing down - List custom repository roles in an organization, 1 of 7
- List custom repository roles in an organization, 2 of 7
- Create a custom repository role, 3 of 7
- Get a custom repository role, 4 of 7
- Update a custom repository role, 5 of 7
- Delete a custom repository role, 6 of 7
- List repository fine-grained permissions for an organization, 7 of 7
- 适用于组织成员的 REST API 终结点, 5 of 12
- List organization members, 1 of 13
- Check organization membership for a user, 2 of 13
- Remove an organization member, 3 of 13
- Get organization membership for a user, 4 of 13
- Set organization membership for a user, 5 of 13
- Remove organization membership for a user, 6 of 13
- List public organization members, 7 of 13
- Check public organization membership for a user, 8 of 13
- Set public organization membership for the authenticated user, 9 of 13
- Remove public organization membership for the authenticated user, 10 of 13
- List organization memberships for the authenticated user, 11 of 13
- Get an organization membership for the authenticated user, 12 of 13
- Update an organization membership for the authenticated user, 13 of 13
- 适用于组织角色的 REST API 终结点, 6 of 12
- List organization fine-grained permissions for an organization, 1 of 14
- Get all organization roles for an organization, 2 of 14
- Create a custom organization role, 3 of 14
- Remove all organization roles for a team, 4 of 14
- Assign an organization role to a team, 5 of 14
- Remove an organization role from a team, 6 of 14
- Remove all organization roles for a user, 7 of 14
- Assign an organization role to a user, 8 of 14
- Remove an organization role from a user, 9 of 14
- Get an organization role, 10 of 14
- Update a custom organization role, 11 of 14
- Delete a custom organization role., 12 of 14
- List teams that are assigned to an organization role, 13 of 14
- List users that are assigned to an organization role, 14 of 14
- 适用于外部协作者的 REST API 终结点, 7 of 12
- 适用于个人访问令牌的 REST API 终结点, 8 of 12
- List requests to access organization resources with fine-grained personal access tokens, 1 of 8
- Review requests to access organization resources with fine-grained personal access tokens, 2 of 8
- Review a request to access organization resources with a fine-grained personal access token, 3 of 8
- List repositories requested to be accessed by a fine-grained personal access token, 4 of 8
- List fine-grained personal access tokens with access to organization resources, 5 of 8
- Update the access to organization resources via fine-grained personal access tokens, 6 of 8
- Update the access a fine-grained personal access token has to organization resources, 7 of 8
- List repositories a fine-grained personal access token has access to, 8 of 8
- 规则套件的 REST API 终结点, 9 of 12
- 规则的 REST API 终结点, 10 of 12
- 适用于安全管理器的 REST API 端点, 11 of 12
- 用于组织 Webhooks 的 REST API 接口节点, 12 of 12
- List organization webhooks, 1 of 11
- Create an organization webhook, 2 of 11
- Get an organization webhook, 3 of 11
- Update an organization webhook, 4 of 11
- Delete an organization webhook, 5 of 11
- Get a webhook configuration for an organization, 6 of 11
- Update a webhook configuration for an organization, 7 of 11
- List deliveries for an organization webhook, 8 of 11
- Get a webhook delivery for an organization webhook, 9 of 11
- Redeliver a delivery for an organization webhook, 10 of 11
- Ping an organization webhook, 11 of 11