Skip to main content
GitHub 文档
Version:
Free, Pro, & Team
搜索 GitHub Docs
Search
Select language: current language is Simplified Chinese
Open Search Bar
Close Search Bar
Open Menu
Open Sidebar
REST API
/
组织
主页
REST API
API Version:
2022-11-28 (latest)
快速入门
REST API 简介
REST API 简介
比较 GitHub 的 API
API 版本
重大更改
OpenAPI 描述
使用 REST API
入门
速率限制
分页
Libraries
最佳做法
故障排除
时区
CORS 与 JSONP
议题事件类型
GitHub 事件类型
身份验证
身份验证
确保 API 凭据安全
适用于 GitHub Apps 安装令牌的终结点
适用于 GitHub Apps 用户令牌的终结点
细化 PAT 的终结点
GitHub 应用的权限
细化 PAT 的权限
Guides
使用 JavaScript 编写脚本
使用 Ruby 编写脚本
为用户发现资源
交付部署
将数据渲染为图形
处理注释
构建 CI 服务器
入门 - Git 数据库
开始 - 检查
加密机密
操作
Artifacts
缓存
OIDC
权限
机密
自托管运行器组
自托管运行程序
变量
工作流程作业
工作流运行
工作流
活动
事件
源
通知
标星
关注中
应用
GitHub Apps
安装
卖场
OAuth 授权
Webhook
计费
计费
分支
分支
受保护的分支
检查
检查运行
检查套件
教室
教室
代码扫描
代码扫描
代码安全设置
配置
行为准则
行为准则
Codespaces
Codespaces
组织
组织机密
机
存储库机密
用户机密
协作者
协作者
邀请
提交
提交
提交注释
提交状态
Copilot
Copilot metrics
Copilot 使用情况
Copilot 用户管理
Dependabot
警报
机密
依赖关系图
依赖项检查
依赖项提交
软件材料清单 (SBOM)
部署密钥
部署密钥
部署
部署分支策略
部署
环境
保护规则
部署状态
表情符号
表情符号
Gists
Gists
评论
Git 数据库
Blob
提交
参考
标记
Trees
Gitignore
Gitignore
交互
组织
存储库
用户
问题
问题
受理人
评论
事件
标签
里程碑
时间线
许可证
许可证
Markdown
Markdown
元数据
元数据
指标
社区
统计信息
交通
迁移
组织
源终结点
用户
组织
API Insights
阻止用户
自定义属性
成员
组织角色
组织
外部协作者
个人访问令牌
规则套件
规则
安全管理员
Webhook
包
包
页
页
Projects (classic)
Boards
卡片
协作者
列
拉取请求
拉取请求
评价注释
审查请求
审阅
速率限制
速率限制
反应
反应
发行版本
发行版本
发布资产
存储库
自动链接
目录
自定义属性
前叉
存储库
规则套件
规则
标记
Webhook
Search
Search
机密扫描
机密扫描
安全通知
全局安全公告
存储库安全公告
Teams
Teams
讨论评论
讨论
成员
用户
证明
阻止用户
电子邮件
关注者
GPG 密钥
Git SSH 密钥
社交帐户
SSH 签名密钥
用户
REST API 现已经过版本控制。
有关详细信息,请参阅“
关于 API 版本控制
”。
REST API
/
组织
适用于组织的 REST API 终结点
使用 REST API 控制并管理所有 GitHub 组织。
适用于组织的 REST API 终结点
List organizations
Get an organization
Update an organization
Delete an organization
List attestations
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
REST API endpoints for API Insights
Get route stats by actor
Get subject stats
Get summary stats
Get summary stats by user
Get summary stats by actor
Get time stats
Get time stats by user
Get time stats by actor
Get user stats
用于阻止用户的 REST API 终结点
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
自定义属性的 REST API 终结点
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
适用于组织成员的 REST API 终结点
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
适用于组织角色的 REST API 终结点
Get all organization roles for an organization
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
List teams that are assigned to an organization role
List users that are assigned to an organization role
适用于外部协作者的 REST API 终结点
List outside collaborators for an organization
Convert an organization member to outside collaborator
Remove outside collaborator from an organization
适用于个人访问令牌的 REST API 终结点
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
规则套件的 REST API 终结点
List organization rule suites
Get an organization rule suite
规则的 REST API 终结点
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
适用于安全管理器的 REST API 终结点
List security manager teams
Add a security manager team
Remove a security manager team
适用于组织 Webhook 的 REST API 终结点
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