{"meta":{"title":"GitHub REST API 文档","intro":"使用 GitHub REST API 创建集成、检索数据并自动执行工作流。","product":"REST API","breadcrumbs":[{"href":"/zh/enterprise-cloud@latest/rest","title":"REST API"}],"documentType":"product"},"body":"# GitHub REST API 文档\n\n使用 GitHub REST API 创建集成、检索数据并自动执行工作流。\n\n## Recommended\n\n* [GitHub REST API 快速入门](/zh/enterprise-cloud@latest/rest/quickstart)\n\n  了解如何开始使用 GitHub REST API。\n\n* [REST API 入门](/zh/enterprise-cloud@latest/rest/using-the-rest-api/getting-started-with-the-rest-api)\n\n  了解如何使用 GitHub REST API。\n\n* [对 REST API 进行身份验证](/zh/enterprise-cloud@latest/rest/authentication/authenticating-to-the-rest-api)\n\n  你可以对 REST API 进行身份验证，以访问更多终结点并获得更高的速率限制。\n\n* [使用 REST API 的最佳做法](/zh/enterprise-cloud@latest/rest/using-the-rest-api/best-practices-for-using-the-rest-api)\n\n  使用 GitHub's API 时，请遵循这些最佳做法。\n\n* [REST API 的速率限制](/zh/enterprise-cloud@latest/rest/using-the-rest-api/rate-limits-for-the-rest-api)\n\n  了解 REST API 速率限制、如何避免超过速率限制，以及如果超过了该怎么办。\n\n* [确保 API 凭据安全](/zh/enterprise-cloud@latest/rest/authentication/keeping-your-api-credentials-secure)\n\n  遵循这些最佳做法，确保 API 凭据和令牌安全。\n\n* [使用 REST API 和 JavaScript 编写脚本](/zh/enterprise-cloud@latest/rest/guides/scripting-with-the-rest-api-and-javascript)\n\n  使用 Octokit.js SDK 编写脚本，以便与 REST API 交互。\n\n* [REST API 故障排除](/zh/enterprise-cloud@latest/rest/using-the-rest-api/troubleshooting-the-rest-api)\n\n  了解如何诊断和解决 REST API 的常见问题。\n\n* [在 REST API 中使用分页](/zh/enterprise-cloud@latest/rest/using-the-rest-api/using-pagination-in-the-rest-api)\n\n  了解如何从 REST API 浏览分页响应。\n\n## Links\n\n### Getting started\n\n* [REST API 简介](/zh/enterprise-cloud@latest/rest/about-the-rest-api/about-the-rest-api)\n\n  熟悉 REST API 文档。\n\n* [GitHub REST API 快速入门](/zh/enterprise-cloud@latest/rest/quickstart)\n\n  了解如何开始使用 GitHub REST API。\n\n## Articles\n\n* [GitHub REST API 快速入门](/zh/enterprise-cloud@latest/rest/quickstart)\n\n  了解如何开始使用 GitHub REST API。\n\n* [REST API 简介](/zh/enterprise-cloud@latest/rest/about-the-rest-api/about-the-rest-api)\n\n  熟悉 REST API 文档。\n\n* [比较GitHub的 REST API 和 GraphQL API](/zh/enterprise-cloud@latest/rest/about-the-rest-api/comparing-githubs-rest-api-and-graphql-api)\n\n  了解 GitHub 的 API，以扩展和自定义你的 GitHub 体验。\n\n* [API 版本](/zh/enterprise-cloud@latest/rest/about-the-rest-api/api-versions)\n\n  了解如何指定在向 REST API 发出请求时要使用的 REST API 版本。\n\n* [重大更改](/zh/enterprise-cloud@latest/rest/about-the-rest-api/breaking-changes)\n\n  了解每个 REST API 版本中引入的中断性变更。\n\n* [关于 REST API 的 OpenAPI 描述](/zh/enterprise-cloud@latest/rest/about-the-rest-api/about-the-openapi-description-for-the-rest-api)\n\n  GitHub REST API 在符合 OpenAPI 的文档中进行全面介绍。\n\n* [REST API 入门](/zh/enterprise-cloud@latest/rest/using-the-rest-api/getting-started-with-the-rest-api)\n\n  了解如何使用 GitHub REST API。\n\n* [REST API 的速率限制](/zh/enterprise-cloud@latest/rest/using-the-rest-api/rate-limits-for-the-rest-api)\n\n  了解 REST API 速率限制、如何避免超过速率限制，以及如果超过了该怎么办。\n\n* [在 REST API 中使用分页](/zh/enterprise-cloud@latest/rest/using-the-rest-api/using-pagination-in-the-rest-api)\n\n  了解如何从 REST API 浏览分页响应。\n\n* [REST API 的库](/zh/enterprise-cloud@latest/rest/using-the-rest-api/libraries-for-the-rest-api)\n\n  可以使用官方 Octokit 库和其他第三方库来扩展和简化使用 GitHub API 的方式。\n\n* [使用 REST API 的最佳做法](/zh/enterprise-cloud@latest/rest/using-the-rest-api/best-practices-for-using-the-rest-api)\n\n  使用 GitHub's API 时，请遵循这些最佳做法。\n\n* [REST API 故障排除](/zh/enterprise-cloud@latest/rest/using-the-rest-api/troubleshooting-the-rest-api)\n\n  了解如何诊断和解决 REST API 的常见问题。\n\n* [时区与 REST API](/zh/enterprise-cloud@latest/rest/using-the-rest-api/timezones-and-the-rest-api)\n\n  某些 REST API 端点允许通过请求指定时区信息。\n\n* [使用 CORS 与 JSONP 发出跨源请求](/zh/enterprise-cloud@latest/rest/using-the-rest-api/using-cors-and-jsonp-to-make-cross-origin-requests)\n\n  可以使用跨源资源共享 (CORS) 和 JSONP 回调来跨域发出 API 请求。\n\n* [议题事件类型](/zh/enterprise-cloud@latest/rest/using-the-rest-api/issue-event-types)\n\n  对于问题事件和时间线事件的 REST API，请了解每个事件类型、触发操作 GitHub以及每个事件的唯一属性。\n\n* [GitHub事件类型](/zh/enterprise-cloud@latest/rest/using-the-rest-api/github-event-types)\n\n  对于 GitHub 事件 API，了解每个事件类型、GitHub 上的触发操作以及每个事件的唯一属性。\n\n* [对 REST API 进行身份验证](/zh/enterprise-cloud@latest/rest/authentication/authenticating-to-the-rest-api)\n\n  你可以对 REST API 进行身份验证，以访问更多终结点并获得更高的速率限制。\n\n* [确保 API 凭据安全](/zh/enterprise-cloud@latest/rest/authentication/keeping-your-api-credentials-secure)\n\n  遵循这些最佳做法，确保 API 凭据和令牌安全。\n\n* [适用于 GitHub Apps 安装访问令牌的终结点](/zh/enterprise-cloud@latest/rest/authentication/endpoints-available-for-github-app-installation-access-tokens)\n\n  GitHub应用可以使用安装访问令牌向以下 REST 终结点发出请求。\n\n* [可用于 GitHub 应用用户访问令牌的端点](/zh/enterprise-cloud@latest/rest/authentication/endpoints-available-for-github-app-user-access-tokens)\n\n  GitHub应用可以使用用户访问令牌向以下 REST 终结点发出请求。\n\n* [可用于细粒度的个人访问令牌的终结点](/zh/enterprise-cloud@latest/rest/authentication/endpoints-available-for-fine-grained-personal-access-tokens)\n\n  fine-grained personal access token 可以向以下 REST 终结点发出请求。\n\n* [GitHub应用所需的权限](/zh/enterprise-cloud@latest/rest/authentication/permissions-required-for-github-apps)\n\n  对于授予某个 GitHub App 的每项权限，以下是应用可以使用的 REST API 终结点。\n\n* [细粒度个人访问令牌所需的权限](/zh/enterprise-cloud@latest/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens)\n\n  对于授予某个 fine-grained personal access token 的每项权限，以下是应用可以使用的 REST API 终结点。\n\n* [使用 REST API 和 JavaScript 编写脚本](/zh/enterprise-cloud@latest/rest/guides/scripting-with-the-rest-api-and-javascript)\n\n  使用 Octokit.js SDK 编写脚本，以便与 REST API 交互。\n\n* [使用 REST API 和 Ruby 编写脚本](/zh/enterprise-cloud@latest/rest/guides/scripting-with-the-rest-api-and-ruby)\n\n  了解如何使用 Octokit.rb SDK 编写脚本，以便与 REST API 交互。\n\n* [为用户发现资源](/zh/enterprise-cloud@latest/rest/guides/discovering-resources-for-a-user)\n\n  了解如何通过向 REST API 发出经过身份验证的请求，找到您的应用程序能够为用户可靠地访问的仓库和组织。\n\n* [执行部署](/zh/enterprise-cloud@latest/rest/guides/delivering-deployments)\n\n  使用部署 REST API，您可以构建与您的服务器和第三方应用程序交互的自定义工具。\n\n* [将数据渲染为图形](/zh/enterprise-cloud@latest/rest/guides/rendering-data-as-graphs)\n\n  了解如何使用 D3.js 库和 Ruby Octokit 可视化仓库中的编程语言。\n\n* [处理注释](/zh/enterprise-cloud@latest/rest/guides/working-with-comments)\n\n  使用 REST API，您可以访问和管理拉取请求、议题或提交中的注释。\n\n* [构建 CI 服务器](/zh/enterprise-cloud@latest/rest/guides/building-a-ci-server)\n\n  使用状态 API 构建您自己的 CI 系统。\n\n* [使用 REST API 与 Git 数据库交互](/zh/enterprise-cloud@latest/rest/guides/using-the-rest-api-to-interact-with-your-git-database)\n\n  使用 REST API，可在 GitHub 上的 Git 数据库中读取和写入原始 Git 对象，并列出和更新你的引用（分支头部和标记）。\n\n* [使用 REST API 与检查交互](/zh/enterprise-cloud@latest/rest/guides/using-the-rest-api-to-interact-with-checks)\n\n  可以使用 REST API 生成 GitHub Apps 针对存储库中的代码更改运行强大的检查。 您可以创建应用程序以执行持续集成 、代码分析或代码扫描服务，并提供有关提交的详细反馈。\n\n* [加密 REST API 的机密](/zh/enterprise-cloud@latest/rest/guides/encrypting-secrets-for-the-rest-api)\n\n  要使用 REST API 创建或更新机密，必须加密机密的值。\n\n* [GitHub Actions 构件的 REST API 终结点](/zh/enterprise-cloud@latest/rest/actions/artifacts)\n\n  使用 REST API 与 GitHub Actions 中的构件进行交互。\n\n* [用于GitHub Actions缓存的 REST API 终结点](/zh/enterprise-cloud@latest/rest/actions/cache)\n\n  使用 REST API 与存储库的 GitHub Actions缓存进行交互。\n\n* [Actions 并发组的 REST API 终结点](/zh/enterprise-cloud@latest/rest/actions/concurrency-groups)\n\n  使用 REST API 查看和管理GitHub Actions工作流的并发组。\n\n* [GitHub托管的运行程序](/zh/enterprise-cloud@latest/rest/actions/hosted-runners)\n\n  使用 REST API 与 GitHub 中的 GitHub Actions 托管运行器进行交互。\n\n* [GitHub Actions OIDC 的 REST API 终结点](/zh/enterprise-cloud@latest/rest/actions/oidc)\n\n  使用 REST API 与 GitHub Actions 中用于 OIDC 主体声明的 JWT 进行交互。\n\n* [针对 GitHub Actions 权限的 REST API 端点](/zh/enterprise-cloud@latest/rest/actions/permissions)\n\n  使用 REST API 与 GitHub Actions 的权限进行交互。\n\n* [用于 GitHub Actions 秘钥的 REST API 端点](/zh/enterprise-cloud@latest/rest/actions/secrets)\n\n  使用 REST API 与 GitHub Actions 中的机密信息进行交互。\n\n* [自托管运行器组的 REST API 终结点](/zh/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups)\n\n  使用 REST API 与 GitHub Actions 的自托管运行器组交互。\n\n* [自托管运行器的 REST API 终结点](/zh/enterprise-cloud@latest/rest/actions/self-hosted-runners)\n\n  使用 REST API 与 GitHub Actions 中的自托管运行器交互。\n\n* [GitHub Actions 变量的 REST API 端点](/zh/enterprise-cloud@latest/rest/actions/variables)\n\n  使用 REST API 与变量 GitHub Actions进行交互。\n\n* [工作流作业的 REST API 终结点](/zh/enterprise-cloud@latest/rest/actions/workflow-jobs)\n\n  使用 REST API 与工作流 GitHub Actions作业进行交互。\n\n* [工作流运行的 REST API 终结点](/zh/enterprise-cloud@latest/rest/actions/workflow-runs)\n\n  使用 REST API 与 GitHub Actions 中的工作流运行进行交互。\n\n* [工作流的 REST API 终结点](/zh/enterprise-cloud@latest/rest/actions/workflows)\n\n  使用 REST API 与工作流 GitHub Actions进行交互。\n\n* [事件的 REST API 终结点](/zh/enterprise-cloud@latest/rest/activity/events)\n\n  使用 REST API 与 GitHub 事件交互。\n\n* [数据流的 REST API 终结点](/zh/enterprise-cloud@latest/rest/activity/feeds)\n\n  使用 REST API 与 GitHub feed 互动。\n\n* [通知的 REST API 终结点](/zh/enterprise-cloud@latest/rest/activity/notifications)\n\n  使用 REST API 管理 GitHub 通知。\n\n* [标星的 REST API 端点](/zh/enterprise-cloud@latest/rest/activity/starring)\n\n  使用 REST API 为存储库添加书签。\n\n* [监视的 REST API 终结点](/zh/enterprise-cloud@latest/rest/activity/watching)\n\n  使用 REST API 订阅存储库中的活动通知。\n\n* [代理任务的 REST API 终结点](/zh/enterprise-cloud@latest/rest/agent-tasks/agent-tasks)\n\n  使用 REST API 启动和管理 Copilot cloud agent 任务\n\n* [代理密钥的 REST API 端点](/zh/enterprise-cloud@latest/rest/agents/secrets)\n\n  使用 REST API 管理代理的机密。\n\n* [变量的 REST API 终结点](/zh/enterprise-cloud@latest/rest/agents/variables)\n\n  使用 REST API 管理变量。\n\n* [适用于企业公告横幅的 REST API 终结点](/zh/enterprise-cloud@latest/rest/announcement-banners/enterprises)\n\n  使用企业公告横幅 API，可以获取、设置和删除企业的公告横幅。\n\n* [组织公告横幅的 REST API 端点](/zh/enterprise-cloud@latest/rest/announcement-banners/organizations)\n\n  使用组织公告横幅 API，可以获取、设置和删除组织的公告横幅。\n\n* [GitHub Apps 的 REST API 终结点](/zh/enterprise-cloud@latest/rest/apps/apps)\n\n  GitHub Apps\n\n* [用于 GitHub App 安装的 REST API 端点](/zh/enterprise-cloud@latest/rest/apps/installations)\n\n  使用 REST API 获取有关 GitHub App 安装的信息，并在这些安装中执行操作。\n\n* [GitHub Marketplace 的 REST API 端点](/zh/enterprise-cloud@latest/rest/apps/marketplace)\n\n  使用 REST API 与 GitHub Marketplace 交互\n\n* [用于 OAuth 授权的 REST API 终结点](/zh/enterprise-cloud@latest/rest/apps/oauth-applications)\n\n  使用 REST API 与 OAuth apps 和 GitHub Apps 的 OAuth 授权进行交互\n\n* [Webhooks 的 GitHub App REST API 终结点](/zh/enterprise-cloud@latest/rest/apps/webhooks)\n\n  使用 REST API 与 Webhook 交互 OAuth apps\n\n* [REST API 的计费终结点](/zh/enterprise-cloud@latest/rest/billing/billing)\n\n  使用 REST API 获取账单信息。\n\n* [Budgets](/zh/enterprise-cloud@latest/rest/billing/budgets)\n\n  使用 REST API 获取预算信息。\n\n* [成本中心](/zh/enterprise-cloud@latest/rest/billing/cost-centers)\n\n  使用 REST API 获取成本中心信息。\n\n* [使用情况计费](/zh/enterprise-cloud@latest/rest/billing/usage)\n\n  使用 REST API 获取计费使用情况信息。\n\n* [使用情况报告](/zh/enterprise-cloud@latest/rest/billing/usage-reports)\n\n  使用 REST API 为企业创建和检索使用情况报告导出。\n\n* [分支的 REST API 端点](/zh/enterprise-cloud@latest/rest/branches/branches)\n\n  使用 REST API 修改分支及其保护设置。\n\n* [受保护分支的 REST API 终结点](/zh/enterprise-cloud@latest/rest/branches/branch-protection)\n\n  使用 REST API 管理受保护的分支。\n\n* [用于安全活动的 REST API 终结点](/zh/enterprise-cloud@latest/rest/campaigns/campaigns)\n\n  使用 REST API 为组织创建和管理安全活动。\n\n* [检查运行的 REST API 终结点](/zh/enterprise-cloud@latest/rest/checks/runs)\n\n  使用 REST API 来管理检查进程。\n\n* [REST API 端点用于检查套件](/zh/enterprise-cloud@latest/rest/checks/suites)\n\n  使用 REST API 管理检查套件。\n\n* [GitHub Classroom 的 REST API 终结点](/zh/enterprise-cloud@latest/rest/classroom/classroom)\n\n  使用 REST API 与 GitHub Classroom 交互。\n\n* [代码质量的 REST API 端点](/zh/enterprise-cloud@latest/rest/code-quality/code-quality)\n\n  使用 REST API 管理代码质量配置。\n\n* [用于 code scanning 警报关闭请求的 REST API 终结点](/zh/enterprise-cloud@latest/rest/code-scanning/alert-dismissal-requests)\n\n  使用 REST API 与存储库中的 code scanning 警报关闭请求交互。\n\n* [适用于代码扫描的 REST API 终结点](/zh/enterprise-cloud@latest/rest/code-scanning/code-scanning)\n\n  使用 REST API 从存储库检索和更新 code scanning 警报。\n\n* [配置](/zh/enterprise-cloud@latest/rest/code-security/configurations)\n\n  使用 REST API 为组织创建和管理安全配置。\n\n* [行为准则的 REST API 终结点](/zh/enterprise-cloud@latest/rest/codes-of-conduct/codes-of-conduct)\n\n  使用 REST API 获取有关行为准则的信息。\n\n* [Codespaces 的 REST API 终结点](/zh/enterprise-cloud@latest/rest/codespaces/codespaces)\n\n  使用 REST API 管理 GitHub Codespaces。\n\n* [适用于 Codespaces 组织的 REST API 终结点](/zh/enterprise-cloud@latest/rest/codespaces/organizations)\n\n  使用 REST API 管理组织成员的 Codespaces 环境。\n\n* [适用于 Codespaces 组织机密的 REST API 终结点](/zh/enterprise-cloud@latest/rest/codespaces/organization-secrets)\n\n  使用 REST API 管理组织级别的 Codespaces 机密。\n\n* [Codespaces 计算机的 REST API 终结点](/zh/enterprise-cloud@latest/rest/codespaces/machines)\n\n  使用 REST API 管理 codespace 可用的机器类型。\n\n* [适用于 Codespaces 存储库机密的 REST API 终结点](/zh/enterprise-cloud@latest/rest/codespaces/repository-secrets)\n\n  使用 REST API 管理用户有权在 codespace 中访问的存储库的机密。\n\n* [适用于 Codespaces 用户机密的 REST API 终结点](/zh/enterprise-cloud@latest/rest/codespaces/secrets)\n\n  使用 REST API 管理用户有权在 codespace 中访问的机密。\n\n* [协作者的 REST API 终端](/zh/enterprise-cloud@latest/rest/collaborators/collaborators)\n\n  使用 REST API 管理存储库的协作者。\n\n* [仓库邀请的 REST API 端点](/zh/enterprise-cloud@latest/rest/collaborators/invitations)\n\n  使用 REST API 查看和管理邀请以协作处理存储库。\n\n* [REST API 提交端点](/zh/enterprise-cloud@latest/rest/commits/commits)\n\n  使用 REST API 与提交交互。\n\n* [适用于提交注释的 REST API 终结点](/zh/enterprise-cloud@latest/rest/commits/comments)\n\n  使用 REST API 与提交注释交互。\n\n* [提交状态的 REST API 端点](/zh/enterprise-cloud@latest/rest/commits/statuses)\n\n  使用 REST API 与提交状态交互。\n\n* [用于Copilot云代理存储库管理的 REST API 终结点](/zh/enterprise-cloud@latest/rest/copilot/copilot-cloud-agent-management)\n\n  使用 REST API 管理存储库 Copilot cloud agent级别的设置。\n\n* [用于Copilot云代理管理的 REST API 终结点](/zh/enterprise-cloud@latest/rest/copilot/copilot-coding-agent-management)\n\n  使用 REST API 管理 Copilot cloud agent 的设置。\n\n* [用于Copilot内容排除管理的 REST API 端点](/zh/enterprise-cloud@latest/rest/copilot/copilot-content-exclusion-management)\n\n  使用 REST API 管理 Copilot 内容排除规则。\n\n* [用于Copilot自定义代理的 REST API 端点](/zh/enterprise-cloud@latest/rest/copilot/copilot-custom-agents)\n\n  使用 REST API 管理企业的 Copilot custom agents。\n\n* [用于 Copilot 使用情况指标的REST API终结点](/zh/enterprise-cloud@latest/rest/copilot/copilot-usage-metrics)\n\n  使用 REST API 查看 Copilot 使用情况指标。\n\n* [用于Copilot用户管理的 REST API 终结点](/zh/enterprise-cloud@latest/rest/copilot/copilot-user-management)\n\n  使用 REST API 来管理您组织的 GitHub Copilot Business 订阅服务。\n\n* [Copilot Spaces 协作者](/zh/enterprise-cloud@latest/rest/copilot-spaces/collaborators)\n\n  使用 REST API 管理 Copilot Spaces 协作者。\n\n* [用于 Copilot Spaces 的 REST API 终结点](/zh/enterprise-cloud@latest/rest/copilot-spaces/copilot-spaces)\n\n  使用 REST API 管理 Copilot 空间和相关资源。\n\n* [Copilot Spaces 资源的 REST API 终结点](/zh/enterprise-cloud@latest/rest/copilot-spaces/resources)\n\n  使用 REST API 与 Copilot Spaces 资源进行交互。\n\n* [撤销](/zh/enterprise-cloud@latest/rest/credentials/revoke)\n\n  使用 REST API 撤销你发现已暴露在 GitHub 或其他地方的凭据。\n\n* [警报消除请求的 Dependabot REST API 终结点](/zh/enterprise-cloud@latest/rest/dependabot/alert-dismissal-requests)\n\n  使用 REST API 管理 Dependabot 存储库的警报消除请求。\n\n* [Dependabot alerts 的 REST API 端点](/zh/enterprise-cloud@latest/rest/dependabot/alerts)\n\n  使用 REST API 与 Dependabot 存储库的警报进行交互。\n\n* [Dependabot 存储库访问的 REST API 终结点](/zh/enterprise-cloud@latest/rest/dependabot/repository-access)\n\n  使用 REST API 管理 Dependabot 在组织内可访问的仓库。\n\n* [适用于 Dependabot 机密的 REST API 终结点](/zh/enterprise-cloud@latest/rest/dependabot/secrets)\n\n  使用 REST API 管理 Dependabot 组织或存储库的机密。\n\n* [适用于依赖项评审的 REST API 终结点](/zh/enterprise-cloud@latest/rest/dependency-graph/dependency-review)\n\n  使用 REST API 与依赖项更改交互。\n\n* [适用于依赖项提交的 REST API 终结点](/zh/enterprise-cloud@latest/rest/dependency-graph/dependency-submission)\n\n  使用 REST API 提交依赖项。\n\n* [适用于软件物料清单 (SBOM) 的 REST API 终结点](/zh/enterprise-cloud@latest/rest/dependency-graph/sboms)\n\n  使用 REST API 导出存储库的软件材料清单 (SBOM)。\n\n* [适用于部署密钥的 REST API 终结点](/zh/enterprise-cloud@latest/rest/deploy-keys/deploy-keys)\n\n  使用 REST API 创建和管理部署密钥。\n\n* [适用于部署分支策略的 REST API 终结点](/zh/enterprise-cloud@latest/rest/deployments/branch-policies)\n\n  使用 REST API 管理自定义部署分支策略。\n\n* [适用于部署的 REST API 终结点](/zh/enterprise-cloud@latest/rest/deployments/deployments)\n\n  使用 REST API 创建和删除部署和部署环境。\n\n* [适用于部署环境的 REST API 终结点](/zh/enterprise-cloud@latest/rest/deployments/environments)\n\n  使用 REST API 创建、配置和删除部署环境。\n\n* [适用于保护规则的 REST API 终结点](/zh/enterprise-cloud@latest/rest/deployments/protection-rules)\n\n  使用 REST API 创建、配置和删除部署保护规则。\n\n* [适用于部署状态的 REST API 终结点](/zh/enterprise-cloud@latest/rest/deployments/statuses)\n\n  使用 REST API 管理部署状态。\n\n* [表情符号的 REST API 终结点](/zh/enterprise-cloud@latest/rest/emojis/emojis)\n\n  使用 REST API 列出和查看在 GitHub 上使用的所有可用表情符号。\n\n* [适用于管理员统计信息的 REST API 终结点](/zh/enterprise-cloud@latest/rest/enterprise-admin/admin-stats)\n\n  使用 REST API 检索有关安装的各种指标。\n\n* [适用于企业审核日志的 REST API 终结点](/zh/enterprise-cloud@latest/rest/enterprise-admin/audit-log)\n\n  使用 REST API 检索企业的审核日志。\n\n* [适用于绕过请求的 REST API 终结点](/zh/enterprise-cloud@latest/rest/enterprise-admin/bypass-requests)\n\n  使用 REST API 管理企业推送规则绕过请求。\n\n* [适用于企业代码安全功能的 REST API 终结点](/zh/enterprise-cloud@latest/rest/enterprise-admin/code-security-and-analysis)\n\n  使用 REST API 管理企业安全功能的使用。\n\n* [用于企业凭据授权的 REST API 终结点](/zh/enterprise-cloud@latest/rest/enterprise-admin/credential-authorizations)\n\n  使用 REST API 管理企业凭据授权。\n\n* [自定义属性](/zh/enterprise-cloud@latest/rest/enterprise-admin/custom-properties)\n\n  使用 REST API 管理企业的自定义属性。\n\n* [适用于企业中组织自定义属性的 REST API](/zh/enterprise-cloud@latest/rest/enterprise-admin/custom-properties-for-orgs)\n\n  使用 REST API 管理属于企业的组织的自定义属性\n\n* [企业角色的 REST API 终结点](/zh/enterprise-cloud@latest/rest/enterprise-admin/enterprise-roles)\n\n  使用 REST API 管理此企业中可用的企业角色\n\n* [用于企业访问验证的 REST API 终结点](/zh/enterprise-cloud@latest/rest/enterprise-admin/enterprises)\n\n  使用 REST API 在 GitHub 企业版中管理企业访问验证配置。\n\n* [许可](/zh/enterprise-cloud@latest/rest/enterprise-admin/licensing)\n\n  使用 REST API 获取许可信息。\n\n* [用于企业网络配置的 REST API 终结点](/zh/enterprise-cloud@latest/rest/enterprise-admin/network-configurations)\n\n  使用 REST API 与企业网络配置交互。\n\n* [用于管理组织GitHub应用安装的 REST API](/zh/enterprise-cloud@latest/rest/enterprise-admin/organization-installations)\n\n  使用 REST API 管理企业组织中安装的项目 GitHub Apps 。\n\n* [规则的 REST API 终结点](/zh/enterprise-cloud@latest/rest/enterprise-admin/rules)\n\n  使用 REST API 管理企业的规则集。 规则集控制用户如何与仓库和代码交互。\n\n* [SCIM 的 REST API 端点](/zh/enterprise-cloud@latest/rest/enterprise-admin/scim)\n\n  使用 REST API 通过 SCIM 自动创建用户和团队成员身份。\n\n* [适用于安全公告的 REST API 终结点](/zh/enterprise-cloud@latest/rest/enterprise-admin/security-advisories)\n\n  使用 REST API 创建和管理内部资源安全警报\n\n* [适用于企业团队成员身份的 REST API 终结点](/zh/enterprise-cloud@latest/rest/enterprise-teams/enterprise-team-members)\n\n  使用 REST API 在您的GitHub企业中创建和管理企业团队的成员身份。\n\n* [适用于企业团队组织的 REST API 终结点](/zh/enterprise-cloud@latest/rest/enterprise-teams/enterprise-team-organizations)\n\n  使用 REST API 为 GitHub enterprise 中的企业团队创建和管理组织分配。\n\n* [适用于企业团队的 REST API 终结点](/zh/enterprise-cloud@latest/rest/enterprise-teams/enterprise-teams)\n\n  使用 REST API 在 GitHub 企业版中创建和管理企业团队。\n\n* [gists 的 REST API 终结点](/zh/enterprise-cloud@latest/rest/gists/gists)\n\n  使用 REST API 列出、创建、更新和删除 GitHub 上的公共 Gist。\n\n* [gist 注释的 REST API 终结点](/zh/enterprise-cloud@latest/rest/gists/comments)\n\n  使用 REST API 查看和修改 Gist 上的注释。\n\n* [Git Blob 的 REST API 端点](/zh/enterprise-cloud@latest/rest/git/blobs)\n\n  使用 REST API 与 Git blob（二进制大型对象）交互，该对象类型用于将每个文件的内容存储在存储库中。\n\n* [Git 提交的 REST API 终结点](/zh/enterprise-cloud@latest/rest/git/commits)\n\n  使用 REST API 与 GitHub 上的 Git 数据库中的提交对象进行交互。\n\n* [Git 参考的 REST API 端点](/zh/enterprise-cloud@latest/rest/git/refs)\n\n  使用 REST API 与 GitHub 上的 Git 数据库中的引用进行交互\n\n* [Git 标签的 REST API 端点](/zh/enterprise-cloud@latest/rest/git/tags)\n\n  使用 REST API 与 GitHub 上的 Git 数据库中的标记对象进行交互。\n\n* [Git 树的 REST API 端点](/zh/enterprise-cloud@latest/rest/git/trees)\n\n  使用 REST API 与 GitHub 上的 Git 数据库中的树对象进行交互。\n\n* [gitignore 的 REST API 端点](/zh/enterprise-cloud@latest/rest/gitignore/gitignore)\n\n  使用 REST API 获取可用于忽略文件和目录的 `.gitignore` 模板。\n\n* [适用于组织交互的 REST API 终结点](/zh/enterprise-cloud@latest/rest/interactions/orgs)\n\n  使用 REST API 临时限制哪类用户可以在组织的公共存储库上发表评论、开设问题或创建拉取请求。\n\n* [适用于存储库交互的 REST API 终结点](/zh/enterprise-cloud@latest/rest/interactions/repos)\n\n  使用 REST API 临时限制哪类用户可以在公共存储库上发表评论、开设问题或创建拉取请求。\n\n* [适用于用户交互的 REST API 终结点](/zh/enterprise-cloud@latest/rest/interactions/user)\n\n  使用 REST API 临时限制哪类用户可以在你的公共存储库上发表评论、开设问题或创建拉取请求。\n\n* [适用于问题分配对象的 REST API 端点](/zh/enterprise-cloud@latest/rest/issues/assignees)\n\n  使用 REST API 管理问题和拉取请求的代理人。\n\n* [适用于问题评论的 REST API 终结点](/zh/enterprise-cloud@latest/rest/issues/comments)\n\n  使用 REST API 管理问题和拉取请求的评论。\n\n* [适用于问题事件的 REST API 终结点](/zh/enterprise-cloud@latest/rest/issues/events)\n\n  使用 REST API 检索由问题和拉取请求中的活动触发的事件。\n\n* [问题依赖项的 REST API 终结点](/zh/enterprise-cloud@latest/rest/issues/issue-dependencies)\n\n  使用 REST API 查看、添加和删除问题依赖项。\n\n* [问题字段值的 REST API 端点](/zh/enterprise-cloud@latest/rest/issues/issue-field-values)\n\n  使用 REST API 查看和管理问题的问题字段值。\n\n* [适用于问题的 REST API 终结点](/zh/enterprise-cloud@latest/rest/issues/issues)\n\n  使用 REST API 管理问题和拉取请求。\n\n* [适用于标签的 REST API 终结点](/zh/enterprise-cloud@latest/rest/issues/labels)\n\n  使用 REST API 管理存储库、议题和拉取请求的标签。\n\n* [适用于里程碑的 REST API 终结点](/zh/enterprise-cloud@latest/rest/issues/milestones)\n\n  使用 REST API 管理里程碑。\n\n* [适用于子问题的 REST API 终结点](/zh/enterprise-cloud@latest/rest/issues/sub-issues)\n\n  使用 REST API 查看、添加、删除子问题以及对子问题重新确定优先级。\n\n* [适用于时间线事件的 REST API 终结点](/zh/enterprise-cloud@latest/rest/issues/timeline)\n\n  使用 REST API 接收由问题和拉取请求中的时间线活动触发的事件。\n\n* [REST API 许可证端点](/zh/enterprise-cloud@latest/rest/licenses/licenses)\n\n  使用 REST API 检索常用开源许可证以及特定项目许可证文件的信息。\n\n* [Markdown 的 REST API 终结点](/zh/enterprise-cloud@latest/rest/markdown/markdown)\n\n  使用 REST API 渲染 markdown 文档作为 HTML 页面或原始文本。\n\n* [元数据的 REST API 端点](/zh/enterprise-cloud@latest/rest/meta/meta)\n\n  使用 REST API 获取有关 GitHub元数据的信息，包括服务的 IP 地址 GitHub 。\n\n* [社区指标的 REST API 终结点](/zh/enterprise-cloud@latest/rest/metrics/community)\n\n  使用 REST API 检索有关社区配置文件的信息。\n\n* [存储库统计信息的 REST API 终结点](/zh/enterprise-cloud@latest/rest/metrics/statistics)\n\n  使用 REST API 获取 GitHub 用于可视化不同类型存储库活动的数据。\n\n* [存储库流量的 REST API 终结点](/zh/enterprise-cloud@latest/rest/metrics/traffic)\n\n  使用 REST API 检索存储库图中提供的信息。\n\n* [适用于组织迁移的 REST API 终结点](/zh/enterprise-cloud@latest/rest/migrations/orgs)\n\n  使用 REST API 导出一个或多个存储库，以便将其移动到GitHub Enterprise Server\n\n* [适用于源导入的 REST API 终结点](/zh/enterprise-cloud@latest/rest/migrations/source-imports)\n\n  使用 REST API 开始从 Git 源存储库导入的操作。\n\n* [适用于用户迁移的 REST API 终结点](/zh/enterprise-cloud@latest/rest/migrations/users)\n\n  使用 REST API 查看、备份或迁移存储 GitHub的用户数据。\n\n* [API 见解的 REST API 端点](/zh/enterprise-cloud@latest/rest/orgs/api-insights)\n\n  使用 REST API 查看组织中 API 使用情况的统计信息。\n\n* [工件元数据的 REST API 终结点](/zh/enterprise-cloud@latest/rest/orgs/artifact-metadata)\n\n  使用这些终结点可检索和管理组织中工件的元数据。 工件元数据提供了关于生成工件的信息、其来源以及相关详细信息。\n\n* [构件声明的 REST API 终结点](/zh/enterprise-cloud@latest/rest/orgs/attestations)\n\n  使用 REST API 与工件验证信息进行交互。\n\n* [用于阻止用户的 REST API 终结点](/zh/enterprise-cloud@latest/rest/orgs/blocking)\n\n  使用REST API来阻止和解除对组织中用户的阻止。\n\n* [组织推送规则绕过请求的 REST API 终结点](/zh/enterprise-cloud@latest/rest/orgs/bypass-requests)\n\n  使用 REST API 管理组织推送规则绕过请求。\n\n* [自定义属性的 REST API 终结点](/zh/enterprise-cloud@latest/rest/orgs/custom-properties)\n\n  使用 REST API 为组织创建和管理自定义属性。\n\n* [组织自定义属性值的 REST API 终结点](/zh/enterprise-cloud@latest/rest/orgs/custom-properties-for-orgs)\n\n  使用 REST API 管理组织的自定义属性值\n\n* [适用于自定义存储库角色的 REST API 终结点](/zh/enterprise-cloud@latest/rest/orgs/custom-roles)\n\n  使用 REST API 与自定义存储库角色交互。\n\n* [用于问题字段的 REST API 端点](/zh/enterprise-cloud@latest/rest/orgs/issue-fields)\n\n  使用 REST API 为组织创建和管理问题字段。\n\n* [适用于议题类型的 REST API 终结点](/zh/enterprise-cloud@latest/rest/orgs/issue-types)\n\n  使用 REST API 与组织中的议题类型进行交互。\n\n* [适用于组织成员的 REST API 终结点](/zh/enterprise-cloud@latest/rest/orgs/members)\n\n  使用 REST API 管理组织中的成员身份。\n\n* [用于网络配置的 REST API 终结点](/zh/enterprise-cloud@latest/rest/orgs/network-configurations)\n\n  用于网络配置的 REST API 终结点\n\n* [适用于组织角色的 REST API 终结点](/zh/enterprise-cloud@latest/rest/orgs/organization-roles)\n\n  使用 REST API 与组织角色交互。\n\n* [适用于组织的 REST API 终结点](/zh/enterprise-cloud@latest/rest/orgs/orgs)\n\n  使用 REST API 与组织交互。\n\n* [适用于外部协作者的 REST API 终结点](/zh/enterprise-cloud@latest/rest/orgs/outside-collaborators)\n\n  使用 REST API 管理外部协作者。\n\n* [适用于个人访问令牌的 REST API 终结点](/zh/enterprise-cloud@latest/rest/orgs/personal-access-tokens)\n\n  使用 REST API 管理 fine-grained personal access token。\n\n* [规则套件的 REST API 终结点](/zh/enterprise-cloud@latest/rest/orgs/rule-suites)\n\n  使用 REST API 管理组织的规则套件。\n\n* [规则的 REST API 终结点](/zh/enterprise-cloud@latest/rest/orgs/rules)\n\n  使用 REST API 管理组织的规则集。 组织规则集控制人员如何与组织存储库中的选定分支和标记进行交互。\n\n* [适用于安全管理器的 REST API 端点](/zh/enterprise-cloud@latest/rest/orgs/security-managers)\n\n  使用 REST API 管理组织中的安全管理器。\n\n* [用于组织 Webhooks 的 REST API 接口节点](/zh/enterprise-cloud@latest/rest/orgs/webhooks)\n\n  使用 REST API 与组织中的 Webhook 进行交互。\n\n* [适用于包的 REST API 终结点](/zh/enterprise-cloud@latest/rest/packages/packages)\n\n  使用 REST API 与 GitHub Packages 进行交互.\n\n* [GitHub Pages 的 REST API 终结点](/zh/enterprise-cloud@latest/rest/pages/pages)\n\n  使用 REST API 与 GitHub Pages 站点和生成进行交互。\n\n* [组织配置](/zh/enterprise-cloud@latest/rest/private-registries/organization-configurations)\n\n  使用 REST API 管理组织的专用注册表配置。\n\n* [草稿项目项的 REST API 终结点](/zh/enterprise-cloud@latest/rest/projects/drafts)\n\n  使用 REST API 管理项目中的草稿项。\n\n* [项目字段的 REST API 终结点](/zh/enterprise-cloud@latest/rest/projects/fields)\n\n  使用 REST API 管理项目字段\n\n* [项目条目的 REST API 端点](/zh/enterprise-cloud@latest/rest/projects/items)\n\n  使用 REST API 管理项目项\n\n* [项目的 REST API 端点](/zh/enterprise-cloud@latest/rest/projects/projects)\n\n  使用 REST API 管理项目\n\n* [Project 视图的 REST API 终结点](/zh/enterprise-cloud@latest/rest/projects/views)\n\n  使用 REST API 管理项目视图\n\n* [用于拉取请求审查注释的 REST API 终结点](/zh/enterprise-cloud@latest/rest/pulls/comments)\n\n  使用 REST API 与拉取请求审查评论进行交互。\n\n* [用于拉取请求的 REST API 终结点](/zh/enterprise-cloud@latest/rest/pulls/pulls)\n\n  使用 REST API 与拉取请求进行交互。\n\n* [用于审查请求的 REST API 终结点](/zh/enterprise-cloud@latest/rest/pulls/review-requests)\n\n  使用 REST API 与审查请求进行交互。\n\n* [用于拉取请求评审的 REST API 端点](/zh/enterprise-cloud@latest/rest/pulls/reviews)\n\n  使用 REST API 与拉取请求评审进行交互。\n\n* [堆叠拉取请求的 REST API 终结点](/zh/enterprise-cloud@latest/rest/pulls/stacks)\n\n  使用 REST API 与堆积拉取请求进行交互。\n\n* [速率限制的 REST API 终结点](/zh/enterprise-cloud@latest/rest/rate-limit/rate-limit)\n\n  使用 REST API 检查当前速率限制状态。\n\n* [回应的 REST API 端点](/zh/enterprise-cloud@latest/rest/reactions/reactions)\n\n  使用 REST API 与 GitHub 上的反应进行交互。\n\n* [REST API 发布端点](/zh/enterprise-cloud@latest/rest/releases/releases)\n\n  使用 REST API 创建、修改和删除发布。\n\n* [发布资源的 REST API 端点](/zh/enterprise-cloud@latest/rest/releases/assets)\n\n  使用 REST API 管理发布资产。\n\n* [库认证的 REST API 端点](/zh/enterprise-cloud@latest/rest/repos/attestations)\n\n  使用 REST API 管理存储库证明。\n\n* [存储库自动链接的 REST API 终结点](/zh/enterprise-cloud@latest/rest/repos/autolinks)\n\n  使用 REST API 向外部资源添加自动链接。\n\n* [存储库推送规则的 REST API 终结点会绕过请求](/zh/enterprise-cloud@latest/rest/repos/bypass-requests)\n\n  使用 REST API 管理存储库推送规则绕过请求。\n\n* [存储库内容的 REST API 终结点](/zh/enterprise-cloud@latest/rest/repos/contents)\n\n  使用 REST API 在存储库中创建、修改和删除 Base64 编码的内容。\n\n* [自定义属性的 REST API 终结点](/zh/enterprise-cloud@latest/rest/repos/custom-properties)\n\n  使用 REST API 列出组织分配给存储库的自定义属性。\n\n* [分支的 REST API 终结点](/zh/enterprise-cloud@latest/rest/repos/forks)\n\n  使用 REST API 管理存储库分支。\n\n* [适用于议题类型的 REST API 终结点](/zh/enterprise-cloud@latest/rest/repos/issue-types)\n\n  使用 REST API 管理存储库的问题类型。\n\n* [Git LFS 的 REST API 端点](/zh/enterprise-cloud@latest/rest/repos/lfs)\n\n  使用 REST API 为存储库启用或禁用 Git 大型文件存储 （LFS）。\n\n* [存储库的 REST API 终结点](/zh/enterprise-cloud@latest/rest/repos/repos)\n\n  使用 REST API 管理 GitHub 上的存储库。\n\n* [规则套件的 REST API 终结点](/zh/enterprise-cloud@latest/rest/repos/rule-suites)\n\n  使用 REST API 管理存储库的规则套件。\n\n* [规则的 REST API 终结点](/zh/enterprise-cloud@latest/rest/repos/rules)\n\n  使用 REST API 管理存储库的规则集。 规则集控制用户如何与存储库中的选定分支和标记交互。\n\n* [存储库 Webhook 的 REST API 终结点](/zh/enterprise-cloud@latest/rest/repos/webhooks)\n\n  使用 REST API 创建和管理存储库的 Webhook。\n\n* [SCIM 的 REST API 端点](/zh/enterprise-cloud@latest/rest/scim/scim)\n\n  使用 REST API 通过 SCIM 控制和管理GitHub组织成员的访问权限。\n\n* [搜索的 REST API 端点](/zh/enterprise-cloud@latest/rest/search/search)\n\n  使用 REST API 在 GitHub 上搜索特定项目。\n\n* [警报解除请求](/zh/enterprise-cloud@latest/rest/secret-scanning/alert-dismissal-requests)\n\n  使用 REST API 管理机密扫描的警报解除请求。\n\n* [用于机密扫描自定义模式的 REST API 终结点](/zh/enterprise-cloud@latest/rest/secret-scanning/custom-patterns)\n\n  使用 REST API 管理用于机密扫描的自定义模式。\n\n* [用于推送保护绕过请求的 REST API 终结点](/zh/enterprise-cloud@latest/rest/secret-scanning/delegated-bypass)\n\n  使用 REST API 来管理机密扫描中的推送保护绕过请求。\n\n* [用于密钥扫描推送保护的 REST API 接口](/zh/enterprise-cloud@latest/rest/secret-scanning/push-protection)\n\n  使用 REST API 管理机密扫描推送保护。\n\n* [适用于机密扫描的 REST API 终结点](/zh/enterprise-cloud@latest/rest/secret-scanning/secret-scanning)\n\n  使用 REST API 从存储库中检索和更新机密警报。\n\n* [适用于全局安全公告的 REST API 终结点](/zh/enterprise-cloud@latest/rest/security-advisories/global-advisories)\n\n  使用 REST API 查看全局安全公告。\n\n* [适用于存储库安全公告的 REST API 终结点](/zh/enterprise-cloud@latest/rest/security-advisories/repository-advisories)\n\n  使用 REST API 查看和管理存储库安全公告。\n\n* [外部组的 REST API 终结点](/zh/enterprise-cloud@latest/rest/teams/external-groups)\n\n  使用 REST API 查看可用于组织的外部标识提供者组，并管理组织中外部组和团队之间的连接。\n\n* [团队成员的 REST API 端点](/zh/enterprise-cloud@latest/rest/teams/members)\n\n  使用 REST API 在 GitHub 组织中创建和管理团队的成员身份。\n\n* [用于团队同步的 REST API 终结点](/zh/enterprise-cloud@latest/rest/teams/team-sync)\n\n  使用 REST API 管理 GitHub 团队与外部身份提供商 (IdP) 组之间的连接。\n\n* [团队的 REST API 端点](/zh/enterprise-cloud@latest/rest/teams/teams)\n\n  使用 REST API 在 GitHub 组织中创建和管理团队。\n\n* [构件声明的 REST API 终结点](/zh/enterprise-cloud@latest/rest/users/attestations)\n\n  使用 REST API 来管理工件声明。\n\n* [用于阻止用户的 REST API 终结点](/zh/enterprise-cloud@latest/rest/users/blocking)\n\n  使用 REST API 管理被阻止的用户。\n\n* [电子邮件的 REST API 端点](/zh/enterprise-cloud@latest/rest/users/emails)\n\n  使用 REST API 管理经过身份验证的用户的电子邮件地址。\n\n* [关注者的 REST API 终结点](/zh/enterprise-cloud@latest/rest/users/followers)\n\n  使用 REST API 获取有关经过身份验证的用户的关注者的信息。\n\n* [GPG 密钥的 REST API 终结点](/zh/enterprise-cloud@latest/rest/users/gpg-keys)\n\n  使用 REST API 管理经过身份验证的用户的 GPG 密钥。\n\n* [Git SSH 密钥的 REST API 终结点](/zh/enterprise-cloud@latest/rest/users/keys)\n\n  使用 REST API 管理经过身份验证的用户的 Git SSH 密钥。\n\n* [社交帐户的 REST API 终结点](/zh/enterprise-cloud@latest/rest/users/social-accounts)\n\n  使用 REST API 管理经过身份验证的用户的社交帐户。\n\n* [SSH 签名密钥的 REST API 终结点](/zh/enterprise-cloud@latest/rest/users/ssh-signing-keys)\n\n  使用 REST API 管理经过身份验证的用户的 SSH 签名密钥。\n\n* [用户的 REST API 终结点](/zh/enterprise-cloud@latest/rest/users/users)\n\n  使用 REST API 获取有关经过身份验证的用户的公共和私人信息。"}