Skip to main content

Эта версия GitHub Enterprise Server была прекращена 2024-09-25. Исправления выпускаться не будут даже при критических проблемах безопасности. Для повышения производительности, повышения безопасности и новых функций выполните обновление до последней версии GitHub Enterprise Server. Чтобы получить справку по обновлению, обратитесь в службу поддержки GitHub Enterprise.

REST API теперь версия. Дополнительные сведения см. в разделе "О управлении версиями API".

Конечные точки REST API для администрирования GitHub Enterprise

Используйте REST API для администрирования предприятия.

These endpoints only support authentication using a personal access token (classic). For more information, see "Managing your personal access tokens."

Endpoint URLs

These endpoints, except the Manage GitHub Enterprise Server API and Management Console API, are prefixed with the following URL:

http(s)://HOSTNAME/api/v3

Endpoints for the Manage GitHub Enterprise Server API and Management Console API are only prefixed with a hostname and administration port:

http(s)://HOSTNAME:ADMINISTRATION-PORT/

Authentication

Your GitHub Enterprise Server installation's API endpoints accept the same authentication methods as the GitHub API. For more information, see "Authenticating to the REST API."

OAuth tokens must have the site_admin OAuth scope when used with these endpoints.

These endpoints are only accessible to authenticated GitHub Enterprise Server site administrators, except for endpoints of the REST API endpoints for managing GitHub Enterprise Server API and REST API endpoints for Management Console API, which allow authentication as a Management Console user. See "Administering your instance from the web UI."

Version information

The current version of your enterprise is returned in the REST API response header: X-GitHub-Enterprise-Version: enterprise-server@3.10.0 You can also read the current version by calling GET /meta. For more information, see "REST API endpoints for meta data."

Endpoints