Skip to main content
GitHub 文档
Version:
Enterprise Cloud
搜索 GitHub Docs
REST API
/
组织
主页
REST API
API Version:
2022-11-28 (latest)
快速入门
概述
比较 GitHub 的 API
REST API 中的资源
Rate limits
API 版本
媒体类型
身份验证
确保 API 凭据安全
故障排除
Libraries
OpenAPI 描述
议题事件类型
GitHub 事件类型
适用于 GitHub Apps 安装令牌的终结点
适用于 GitHub Apps 用户令牌的终结点
细化 PAT 的终结点
GitHub 应用的权限
细化 PAT 的权限
重大更改
Guides
使用 API
使用 JavaScript 编写脚本
使用 Ruby 编写脚本
为用户发现资源
交付部署
将数据渲染为图形
处理注释
分页
构建 CI 服务器
最佳实践
入门 - Git 数据库
开始 - 检查
加密机密
操作
Artifacts
缓存
OIDC
权限
机密
自托管运行器组
自托管运行程序
变量
工作流程作业
工作流运行
工作流
活动
事件
源
通知
标星
关注中
公告横幅
Enterprise
组织
应用
GitHub 应用
安装
市场
OAuth 授权
Webhook
计费
计费
分支
分支
受保护的分支
检查
检查运行
检查套件
教室
教室
代码扫描
代码扫描
行为准则
行为准则
Codespaces
Codespaces
组织
组织机密
机
存储库机密
用户机密
协作者
协作者
邀请
提交
提交
提交注释
提交状态
Copilot
Copilot business
Dependabot
警报
机密
依赖项关系图
依赖项检查
依赖项提交
软件材料清单 (SBOM)
部署密钥
部署密钥
部署
部署分支策略
部署
环境
保护规则
部署状态
表情符号
表情符号
企业管理
管理统计
审核日志
计费
代码安全性和分析
许可证
SCIM
Gists
Gists
注释
Git 数据库
Blob
提交
reference
标记
Trees
Gitignore
Gitignore
交互
组织
存储库
用户
问题
问题
受理人
注释
事件
标签
里程碑
时间线
许可证
许可证
Markdown
Markdown
元数据
元数据
指标
社区
统计信息
交通
迁移
组织
源导入
用户
组织
阻止用户
Custom properties
自定义存储库角色
成员
组织角色
组织
外部协作者
个人访问令牌
规则套件
规则
安全经理
Webhook
包
包
页
页
Projects (classic)
Boards
卡片
协作者
列
拉取
拉取
评价注释
审查请求
审阅
速率限制
速率限制
反应
反应
发行版本
发行版本
发布资产
存储库
自动链接
目录
Custom properties
前叉
Git LFS
存储库
规则套件
规则
标记
Webhook
SCIM
SCIM
搜索
搜索
机密扫描
机密扫描
安全通知
全局安全公告
存储库安全公告
Teams
Teams
讨论评论
讨论
外部组
成员
团队同步
用户
用户
阻止用户
电子邮件
关注者
GPG 密钥
Git SSH 密钥
SSH 签名密钥
社交帐户
REST API 现已经过版本控制。
有关详细信息,请参阅“
关于 API 版本控制
”。
REST API
/
组织
组织
使用 REST API 控制并管理所有 GitHub Enterprise Cloud 组织。
组织
List organizations
Get an organization
Update an organization
Delete an organization
Get the audit log for an organization
List SAML SSO authorizations for an organization
Remove a SAML SSO authorization for an organization
List app installations for an organization
Enable or disable a security feature for an organization
List organizations for the authenticated user
List organizations for a user
阻止用户
List users blocked by an organization
Check if a user is blocked by an organization
Block a user from an organization
Unblock a user from an organization
Custom properties
Get all custom properties for an organization
Create or update custom properties for an organization
Get a custom property for an organization
Create or update a custom property for an organization
Remove a custom property for an organization
List custom property values for organization repositories
Create or update custom property values for organization repositories
自定义存储库角色
Deprecated - List custom repository roles in an organization
List custom repository roles in an organization
Create a custom repository role
Get a custom repository role
Update a custom repository role
Delete a custom repository role
Deprecated - Create a custom role
Deprecated - Get a custom role
Deprecated - Update a custom role
Deprecated - Delete a custom role
Deprecated - List fine-grained permissions for an organization
List repository fine-grained permissions for an organization
组织成员
List failed organization invitations
List pending organization invitations
Create an organization invitation
Cancel an organization invitation
List organization invitation teams
List organization members
Check organization membership for a user
Remove an organization member
Get organization membership for a user
Set organization membership for a user
Remove organization membership for a user
List public organization members
Check public organization membership for a user
Set public organization membership for the authenticated user
Remove public organization membership for the authenticated user
List organization memberships for the authenticated user
Get an organization membership for the authenticated user
Update an organization membership for the authenticated user
组织角色
List organization fine-grained permissions for an organization
Get all organization roles for an organization
Create a custom organization role
Remove all organization roles for a team
Assign an organization role to a team
Remove an organization role from a team
Remove all organization roles for a user
Assign an organization role to a user
Remove an organization role from a user
Get an organization role
Update a custom organization role
Delete a custom organization role.
List teams that are assigned to an organization role
List users that are assigned to an organization role
外部协作者
List outside collaborators for an organization
Convert an organization member to outside collaborator
Remove outside collaborator from an organization
个人访问令牌
List requests to access organization resources with fine-grained personal access tokens
Review requests to access organization resources with fine-grained personal access tokens
Review a request to access organization resources with a fine-grained personal access token
List repositories requested to be accessed by a fine-grained personal access token
List fine-grained personal access tokens with access to organization resources
Update the access to organization resources via fine-grained personal access tokens
Update the access a fine-grained personal access token has to organization resources
List repositories a fine-grained personal access token has access to
规则套件
List organization rule suites
Get an organization rule suite
规则
Get all organization repository rulesets
Create an organization repository ruleset
Get an organization repository ruleset
Update an organization repository ruleset
Delete an organization repository ruleset
安全经理
List security manager teams
Add a security manager team
Remove a security manager team
组织 web 挂钩
List organization webhooks
Create an organization webhook
Get an organization webhook
Update an organization webhook
Delete an organization webhook
Get a webhook configuration for an organization
Update a webhook configuration for an organization
List deliveries for an organization webhook
Get a webhook delivery for an organization webhook
Redeliver a delivery for an organization webhook
Ping an organization webhook