Skip to main content
GitHub 文档
Version:
Free, Pro, & Team
搜索 GitHub Docs
REST API
/
组织
All products
REST API
API Version:
2022-11-28 (latest)
快速入门
概述
Comparing GitHub's APIs
REST API 中的资源
Rate limits
API 版本
媒体类型
身份验证
确保 API 凭据安全
故障排除
Libraries
OpenAPI 描述
议题事件类型
GitHub 事件类型
适用于 GitHub Apps 安装令牌的终结点
适用于 GitHub Apps 用户令牌的终结点
细化 PAT 的终结点
GitHub 应用的权限
细化 PAT 的权限
重大更改
Guides
使用 API
使用 JavaScript 编写脚本
使用 Ruby 编写脚本
为用户发现资源
交付部署
将数据渲染为图形
处理注释
分页
构建 CI 服务器
最佳实践
入门 - Git 数据库
开始 - 检查
加密机密
操作
Artifacts
缓存
OIDC
权限
机密
自托管运行程序
变量
工作流程作业
工作流运行
工作流
活动
事件
源
通知
标星
关注中
应用
GitHub 应用
安装
市场
OAuth 授权
Webhook
计费
计费
分支
分支
受保护的分支
检查
检查运行
检查套件
教室
教室
代码扫描
代码扫描
行为准则
行为准则
Codespaces
Codespaces
组织
组织机密
机
存储库机密
用户机密
协作者
协作者
邀请
提交
提交
提交注释
提交状态
Copilot
Copilot 企业版
Dependabot
警报
机密
依赖项关系图
依赖项检查
依赖项提交
软件材料清单 (SBOM)
部署密钥
部署密钥
部署
部署分支策略
部署
环境
保护规则
部署状态
表情符号
表情符号
Gists
Gists
注释
Git 数据库
Blob
提交
reference
标记
Trees
Gitignore
Gitignore
交互
组织
存储库
用户
问题
问题
受理人
注释
事件
标签
里程碑
时间线
许可证
许可证
Markdown
Markdown
元数据
元数据
指标
社区
统计信息
交通
迁移
组织
源导入
用户
组织
阻止用户
Custom properties
成员
组织
外部协作者
个人访问令牌
规则套件
规则
安全经理
Webhook
包
包
页
页
Projects (classic)
Boards
卡片
协作者
列
拉取
拉取
评价注释
审查请求
审阅
速率限制
速率限制
反应
反应
发行版本
发行版本
发布资产
存储库
自动链接
目录
Custom properties
前叉
存储库
规则套件
规则
标记
Webhook
搜索
搜索
机密扫描
机密扫描
安全通知
全局安全公告
存储库安全公告
Teams
Teams
讨论评论
讨论
成员
用户
用户
阻止用户
电子邮件
关注者
GPG 密钥
Git SSH 密钥
SSH 签名密钥
社交帐户
The REST API is now versioned.
For more information, see "
About API versioning
."
REST API
/
组织
组织
使用 REST API 控制并管理所有 GitHub 组织。
Orgs
List organizations
Get an organization
Update an organization
Delete 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
Blocking
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
Members
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
Outside collaborators
List outside collaborators for an organization
Convert an organization member to outside collaborator
Remove outside collaborator from an organization
Personal access tokens
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
Rule suites
List organization rule suites
Get an organization rule suite
Rules
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
Security managers
List security manager teams
Add a security manager team
Remove a security manager team
Webhooks
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