APIs.io Engineering Platform Enterprise-Admin API

Enterprise Administration

Operations 122

GET /admin/hooks APIs.io Engineering Platform List global webhooks #
POST /admin/hooks APIs.io Engineering Platform Create a global webhook #
GET /admin/hooks/{hook_id} APIs.io Engineering Platform Get a global webhook #
PATCH /admin/hooks/{hook_id} APIs.io Engineering Platform Update a global webhook #
DELETE /admin/hooks/{hook_id} APIs.io Engineering Platform Delete a global webhook #
POST /admin/hooks/{hook_id}/pings APIs.io Engineering Platform Ping a global webhook #
GET /admin/keys APIs.io Engineering Platform List public keys #
DELETE /admin/keys/{key_ids} APIs.io Engineering Platform Delete a public key #
PATCH /admin/ldap/teams/{team_id}/mapping APIs.io Engineering Platform Update LDAP mapping for a team #
POST /admin/ldap/teams/{team_id}/sync APIs.io Engineering Platform Sync LDAP mapping for a team #
PATCH /admin/ldap/users/{username}/mapping APIs.io Engineering Platform Update LDAP mapping for a user #
POST /admin/ldap/users/{username}/sync APIs.io Engineering Platform Sync LDAP mapping for a user #
POST /admin/organizations APIs.io Engineering Platform Create an organization #
PATCH /admin/organizations/{org} APIs.io Engineering Platform Update an organization name #
GET /admin/pre-receive-environments APIs.io Engineering Platform List pre-receive environments #
POST /admin/pre-receive-environments APIs.io Engineering Platform Create a pre-receive environment #
GET /admin/pre-receive-environments/{pre_receive_environment_id} APIs.io Engineering Platform Get a pre-receive environment #
PATCH /admin/pre-receive-environments/{pre_receive_environment_id} APIs.io Engineering Platform Update a pre-receive environment #
DELETE /admin/pre-receive-environments/{pre_receive_environment_id} APIs.io Engineering Platform Delete a pre-receive environment #
POST /admin/pre-receive-environments/{pre_receive_environment_id}/downloads APIs.io Engineering Platform Start a pre-receive environment download #
GET /admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest APIs.io Engineering Platform Get the download status for a pre-receive environment #
GET /admin/pre-receive-hooks APIs.io Engineering Platform List pre-receive hooks #
POST /admin/pre-receive-hooks APIs.io Engineering Platform Create a pre-receive hook #
GET /admin/pre-receive-hooks/{pre_receive_hook_id} APIs.io Engineering Platform Get a pre-receive hook #
PATCH /admin/pre-receive-hooks/{pre_receive_hook_id} APIs.io Engineering Platform Update a pre-receive hook #
DELETE /admin/pre-receive-hooks/{pre_receive_hook_id} APIs.io Engineering Platform Delete a pre-receive hook #
GET /admin/tokens APIs.io Engineering Platform List personal access tokens #
DELETE /admin/tokens/{token_id} APIs.io Engineering Platform Delete a personal access token #
POST /admin/users APIs.io Engineering Platform Create a user #
PATCH /admin/users/{username} APIs.io Engineering Platform Update the username for a user #
DELETE /admin/users/{username} APIs.io Engineering Platform Delete a user #
POST /admin/users/{username}/authorizations APIs.io Engineering Platform Create an impersonation OAuth token #
DELETE /admin/users/{username}/authorizations APIs.io Engineering Platform Delete an impersonation OAuth token #
GET /enterprise/announcement APIs.io Engineering Platform Get the global announcement banner #
PATCH /enterprise/announcement APIs.io Engineering Platform Set the global announcement banner #
DELETE /enterprise/announcement APIs.io Engineering Platform Remove the global announcement banner #
GET /enterprise/settings/license APIs.io Engineering Platform Get license information #
GET /enterprise/stats/all APIs.io Engineering Platform Get all statistics #
GET /enterprise/stats/comments APIs.io Engineering Platform Get comment statistics #
GET /enterprise/stats/gists APIs.io Engineering Platform Get gist statistics #
GET /enterprise/stats/hooks APIs.io Engineering Platform Get hooks statistics #
GET /enterprise/stats/issues APIs.io Engineering Platform Get issue statistics #
GET /enterprise/stats/milestones APIs.io Engineering Platform Get milestone statistics #
GET /enterprise/stats/orgs APIs.io Engineering Platform Get organization statistics #
GET /enterprise/stats/pages APIs.io Engineering Platform Get pages statistics #
GET /enterprise/stats/pulls APIs.io Engineering Platform Get pull request statistics #
GET /enterprise/stats/repos APIs.io Engineering Platform Get repository statistics #
GET /enterprise/stats/users APIs.io Engineering Platform Get users statistics #
GET /enterprises/{enterprise}/actions/permissions APIs.io Engineering Platform Get GitHub Actions permissions for an enterprise #
PUT /enterprises/{enterprise}/actions/permissions APIs.io Engineering Platform Set GitHub Actions permissions for an enterprise #
GET /enterprises/{enterprise}/actions/permissions/organizations APIs.io Engineering Platform List selected organizations enabled for GitHub Actions in an enterprise #
PUT /enterprises/{enterprise}/actions/permissions/organizations APIs.io Engineering Platform Set selected organizations enabled for GitHub Actions in an enterprise #
PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id} APIs.io Engineering Platform Enable a selected organization for GitHub Actions in an enterprise #
DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id} APIs.io Engineering Platform Disable a selected organization for GitHub Actions in an enterprise #
GET /enterprises/{enterprise}/actions/permissions/selected-actions APIs.io Engineering Platform Get allowed actions for an enterprise #
PUT /enterprises/{enterprise}/actions/permissions/selected-actions APIs.io Engineering Platform Set allowed actions for an enterprise #
GET /enterprises/{enterprise}/actions/runner-groups APIs.io Engineering Platform List self-hosted runner groups for an enterprise #
POST /enterprises/{enterprise}/actions/runner-groups APIs.io Engineering Platform Create a self-hosted runner group for an enterprise #
GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id} APIs.io Engineering Platform Get a self-hosted runner group for an enterprise #
PATCH /enterprises/{enterprise}/actions/runner-groups/{runner_group_id} APIs.io Engineering Platform Update a self-hosted runner group for an enterprise #
DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id} APIs.io Engineering Platform Delete a self-hosted runner group from an enterprise #
GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations APIs.io Engineering Platform List organization access to a self-hosted runner group in an enterprise #
PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations APIs.io Engineering Platform Set organization access for a self-hosted runner group in an enterprise #
PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id} APIs.io Engineering Platform Add organization access to a self-hosted runner group in an enterprise #
DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id} APIs.io Engineering Platform Remove organization access to a self-hosted runner group in an enterprise #
GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners APIs.io Engineering Platform List self-hosted runners in a group for an enterprise #
PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners APIs.io Engineering Platform Set self-hosted runners in a group for an enterprise #
PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id} APIs.io Engineering Platform Add a self-hosted runner to a group for an enterprise #
DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id} APIs.io Engineering Platform Remove a self-hosted runner from a group for an enterprise #
GET /enterprises/{enterprise}/actions/runners APIs.io Engineering Platform List self-hosted runners for an enterprise #
GET /enterprises/{enterprise}/actions/runners/downloads APIs.io Engineering Platform List runner applications for an enterprise #
POST /enterprises/{enterprise}/actions/runners/registration-token APIs.io Engineering Platform Create a registration token for an enterprise #
POST /enterprises/{enterprise}/actions/runners/remove-token APIs.io Engineering Platform Create a remove token for an enterprise #
GET /enterprises/{enterprise}/actions/runners/{runner_id} APIs.io Engineering Platform Get a self-hosted runner for an enterprise #
DELETE /enterprises/{enterprise}/actions/runners/{runner_id} APIs.io Engineering Platform Delete a self-hosted runner from an enterprise #
GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels APIs.io Engineering Platform List labels for a self-hosted runner for an enterprise #
POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels APIs.io Engineering Platform Add custom labels to a self-hosted runner for an enterprise #
PUT /enterprises/{enterprise}/actions/runners/{runner_id}/labels APIs.io Engineering Platform Set custom labels for a self-hosted runner for an enterprise #
DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels APIs.io Engineering Platform Remove all custom labels from a self-hosted runner for an enterprise #
DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels/{name} APIs.io Engineering Platform Remove a custom label from a self-hosted runner for an enterprise #
GET /enterprises/{enterprise}/audit-log APIs.io Engineering Platform Get the audit log for an enterprise #
GET /enterprises/{enterprise}/code_security_and_analysis APIs.io Engineering Platform Get code security and analysis features for an enterprise #
PATCH /enterprises/{enterprise}/code_security_and_analysis APIs.io Engineering Platform Update code security and analysis features for an enterprise #
POST /enterprises/{enterprise}/{security_product}/{enablement} APIs.io Engineering Platform Enable or disable a security feature #
GET /manage/v1/config/nodes APIs.io Engineering Platform Get GHES node metadata for all nodes #
GET /manage/v1/replication/status APIs.io Engineering Platform Get the status of services running on all replica nodes #
GET /manage/v1/version APIs.io Engineering Platform Get all GHES release versions for all nodes #
GET /orgs/{org}/pre-receive-hooks APIs.io Engineering Platform List pre-receive hooks for an organization #
GET /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id} APIs.io Engineering Platform Get a pre-receive hook for an organization #
PATCH /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id} APIs.io Engineering Platform Update pre-receive hook enforcement for an organization #
DELETE /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id} APIs.io Engineering Platform Remove pre-receive hook enforcement for an organization #
GET /repos/{owner}/{repo}/pre-receive-hooks APIs.io Engineering Platform List pre-receive hooks for a repository #
GET /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id} APIs.io Engineering Platform Get a pre-receive hook for a repository #
PATCH /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id} APIs.io Engineering Platform Update pre-receive hook enforcement for a repository #
DELETE /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id} APIs.io Engineering Platform Remove pre-receive hook enforcement for a repository #
GET /scim/v2/enterprises/{enterprise}/Groups APIs.io Engineering Platform List provisioned SCIM groups for an enterprise #
POST /scim/v2/enterprises/{enterprise}/Groups APIs.io Engineering Platform Provision a SCIM enterprise group #
GET /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id} APIs.io Engineering Platform Get SCIM provisioning information for an enterprise group #
PUT /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id} APIs.io Engineering Platform Set SCIM information for a provisioned enterprise group #
PATCH /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id} APIs.io Engineering Platform Update an attribute for a SCIM enterprise group #
DELETE /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id} APIs.io Engineering Platform Delete a SCIM group from an enterprise #
GET /scim/v2/enterprises/{enterprise}/Users APIs.io Engineering Platform List SCIM provisioned identities for an enterprise #
POST /scim/v2/enterprises/{enterprise}/Users APIs.io Engineering Platform Provision a SCIM enterprise user #
GET /scim/v2/enterprises/{enterprise}/Users/{scim_user_id} APIs.io Engineering Platform Get SCIM provisioning information for an enterprise user #
PUT /scim/v2/enterprises/{enterprise}/Users/{scim_user_id} APIs.io Engineering Platform Set SCIM information for a provisioned enterprise user #
PATCH /scim/v2/enterprises/{enterprise}/Users/{scim_user_id} APIs.io Engineering Platform Update an attribute for a SCIM enterprise user #
DELETE /scim/v2/enterprises/{enterprise}/Users/{scim_user_id} APIs.io Engineering Platform Delete a SCIM user from an enterprise #
GET /setup/api/configcheck APIs.io Engineering Platform Get the configuration status #
POST /setup/api/configure APIs.io Engineering Platform Start a configuration process #
GET /setup/api/maintenance APIs.io Engineering Platform Get the maintenance status #
POST /setup/api/maintenance APIs.io Engineering Platform Enable or disable maintenance mode #
GET /setup/api/settings APIs.io Engineering Platform Get settings #
PUT /setup/api/settings APIs.io Engineering Platform Set settings #
GET /setup/api/settings/authorized-keys APIs.io Engineering Platform Get all authorized SSH keys #
POST /setup/api/settings/authorized-keys APIs.io Engineering Platform Add an authorized SSH key #
DELETE /setup/api/settings/authorized-keys APIs.io Engineering Platform Remove an authorized SSH key #
POST /setup/api/start APIs.io Engineering Platform Create a GitHub license #
POST /setup/api/upgrade APIs.io Engineering Platform Upgrade a license #
PUT /users/{username}/site_admin APIs.io Engineering Platform Promote a user to be a site administrator #
DELETE /users/{username}/site_admin APIs.io Engineering Platform Demote a site administrator #
PUT /users/{username}/suspended APIs.io Engineering Platform Suspend a user #
DELETE /users/{username}/suspended APIs.io Engineering Platform Unsuspend a user #

Documentation

Specifications

Other Resources

🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-1ab188a6-cc1f-490d-9413-9c6da20918d0?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-0e94f581-cbc1-48e0-b594-1f6b3d07a328?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-4517d93a-e7f7-4dc2-b572-06762bbe14de?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-88f9ddbb-3115-47dc-b6e5-7fc6f1d2a190?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-3a12caae-4945-4df4-8ab9-bb6219ba7a9f?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-863b18f0-c2f2-4e32-a5fa-0d1e6ccf77a9?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-189876d1-f207-49a2-a4bc-5c67ae78cd19?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-c1e74fd9-3f84-4d95-943d-d645d6cb82f7?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-b002164d-6e8a-4b6d-b409-4929476e7818?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-508660fd-30b8-4c9c-aede-8edbac8a514d?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-da35e0ba-f1a9-42fe-a77a-56ff0a47e341?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-1d4df7d0-9c92-4fa8-946f-2110c2b3b48d?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-2af6f54f-d259-46c0-8f86-78856f5885cd?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-cc203f31-e7f6-42ec-ad34-c5c4cde58904?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-f19285da-48dd-4691-bbdf-f7d6bec157a3?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-aa69cacc-4bbf-4724-a1d4-78cdad57fee8?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-a5858f86-04d3-4e15-ae11-b42c7516688b?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-c2052341-766c-43c7-b1dc-ed4985e4606b?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-aa777c90-8271-4809-8eac-3ec39a9a899c?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-4d5957dc-df05-4216-a5fc-d46b3ba811d8?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-28d97617-fdba-46a5-ac3e-40f3d2e0fa57?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-7429b451-d812-4abc-b497-b763372cf5c5?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-b0eafdd0-adaa-48a2-a855-6a31beb86d83?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-209f34ef-13c1-400c-bca8-fcddb304aff5?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-fb2bbbb8-d4cc-48b1-a660-c8e158bfbbea?action=share&creator=35240

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/engineering-platform-enterprise-admin-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

engineering-platform-enterprise-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.1.4
  title: APIs.io Engineering Platform GitHub v3 REST Enterprise Admin API
  description: GitHub's v3 REST API.
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
  termsOfService: https://docs.github.com/articles/github-terms-of-service
  contact:
    name: Support
    url: https://support.github.com/contact?tags=dotcom-rest-api
  x-github-plan: ghes
  x-github-release: 3.9
servers:
- url: '{protocol}://{hostname}/api/v3'
  variables:
    hostname:
      description: Self-hosted Enterprise Server hostname
      default: HOSTNAME
    protocol:
      description: Self-hosted Enterprise Server protocol
      default: http
tags:
- name: Enterprise-Admin
  description: Enterprise Administration
paths:
  /admin/hooks:
    get:
      summary: APIs.io Engineering Platform List global webhooks
      description: ''
      operationId: enterprise-admin/list-global-webhooks
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/global-webhooks#list-global-webhooks
      parameters:
      - $ref: '#/components/parameters/per-page'
      - $ref: '#/components/parameters/page'
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/global-hook'
              examples:
                default:
                  $ref: '#/components/examples/global-hook-items'
          headers:
            Link:
              $ref: '#/components/headers/link'
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: global-webhooks
    post:
      summary: APIs.io Engineering Platform Create a global webhook
      description: ''
      operationId: enterprise-admin/create-global-webhook
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/global-webhooks#create-a-global-webhook
      responses:
        '201':
          description: Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/global-hook'
              examples:
                default:
                  $ref: '#/components/examples/global-hook'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Must be passed as "web".
                config:
                  type: object
                  description: Key/value pairs to provide settings for this webhook.
                  properties:
                    url:
                      type: string
                      description: The URL to which the payloads will be delivered.
                    content_type:
                      type: string
                      description: The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.
                    secret:
                      type: string
                      description: If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/enterprise-server@3.9/webhooks/event-payloads/#delivery-headers) header.
                    insecure_ssl:
                      type: string
                      description: Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**
                  required:
                  - url
                events:
                  type: array
                  description: 'The [events](https://docs.github.com/enterprise-server@3.9/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.'
                  items:
                    type: string
                active:
                  type: boolean
                  description: Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.
                  default: true
              required:
              - name
              - config
            examples:
              default:
                value:
                  name: web
                  events:
                  - organization
                  - user
                  config:
                    url: https://example.com/webhook
                    content_type: json
                    secret: secret
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: global-webhooks
  /admin/hooks/{hook_id}:
    get:
      summary: APIs.io Engineering Platform Get a global webhook
      description: ''
      operationId: enterprise-admin/get-global-webhook
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/global-webhooks#get-a-global-webhook
      parameters:
      - $ref: '#/components/parameters/hook-id'
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/global-hook'
              examples:
                default:
                  $ref: '#/components/examples/global-hook'
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: global-webhooks
    patch:
      summary: APIs.io Engineering Platform Update a global webhook
      description: Parameters that are not provided will be overwritten with the default value or removed if no default exists.
      operationId: enterprise-admin/update-global-webhook
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/global-webhooks#update-a-global-webhook
      parameters:
      - $ref: '#/components/parameters/hook-id'
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/global-hook-2'
              examples:
                default:
                  $ref: '#/components/examples/global-hook-2'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                config:
                  type: object
                  description: Key/value pairs to provide settings for this webhook.
                  properties:
                    url:
                      type: string
                      description: The URL to which the payloads will be delivered.
                    content_type:
                      type: string
                      description: The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.
                    secret:
                      type: string
                      description: If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/enterprise-server@3.9/webhooks/event-payloads/#delivery-headers) header.
                    insecure_ssl:
                      type: string
                      description: Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**
                  required:
                  - url
                events:
                  type: array
                  description: 'The [events](https://docs.github.com/enterprise-server@3.9/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.'
                  items:
                    type: string
                active:
                  type: boolean
                  description: Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.
                  default: true
            examples:
              default:
                value:
                  events:
                  - organization
                  config:
                    url: https://example.com/webhook
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: global-webhooks
    delete:
      summary: APIs.io Engineering Platform Delete a global webhook
      description: ''
      operationId: enterprise-admin/delete-global-webhook
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/global-webhooks#delete-a-global-webhook
      parameters:
      - $ref: '#/components/parameters/hook-id'
      responses:
        '204':
          description: Response
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: global-webhooks
  /admin/hooks/{hook_id}/pings:
    post:
      summary: APIs.io Engineering Platform Ping a global webhook
      description: This will trigger a [ping event](https://docs.github.com/enterprise-server@3.9/webhooks/#ping-event) to be sent to the webhook.
      operationId: enterprise-admin/ping-global-webhook
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/global-webhooks#ping-a-global-webhook
      parameters:
      - $ref: '#/components/parameters/hook-id'
      responses:
        '204':
          description: Response
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: global-webhooks
  /admin/keys:
    get:
      summary: APIs.io Engineering Platform List public keys
      description: ''
      operationId: enterprise-admin/list-public-keys
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/users#list-public-keys
      parameters:
      - $ref: '#/components/parameters/per-page'
      - $ref: '#/components/parameters/page'
      - $ref: '#/components/parameters/direction'
      - name: sort
        in: query
        required: false
        schema:
          type: string
          enum:
          - created
          - updated
          - accessed
          default: created
      - name: since
        description: Only show public keys accessed after the given time.
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/public-key-full'
              examples:
                default:
                  $ref: '#/components/examples/enterprise-public-key-items'
          headers:
            Link:
              $ref: '#/components/headers/link'
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: users
  /admin/keys/{key_ids}:
    delete:
      summary: APIs.io Engineering Platform Delete a public key
      description: ''
      operationId: enterprise-admin/delete-public-key
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/users#delete-a-public-key
      parameters:
      - $ref: '#/components/parameters/key-ids'
      responses:
        '204':
          description: Response
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: users
  /admin/ldap/teams/{team_id}/mapping:
    patch:
      summary: APIs.io Engineering Platform Update LDAP mapping for a team
      description: Updates the [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. [LDAP synchronization](https://docs.github.com/enterprise-server@3.9/admin/identity-and-access-management/using-ldap-for-enterprise-iam/using-ldap#enabling-ldap-sync) must be enabled to map LDAP entries to a team. Use the [Create a team](https://docs.github.com/enterprise-server@3.9/rest/teams/teams/#create-a-team) endpoint to create a team with LDAP mapping.
      operationId: enterprise-admin/update-ldap-mapping-for-team
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-team
      parameters:
      - $ref: '#/components/parameters/team-id'
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ldap-mapping-team'
              examples:
                default:
                  $ref: '#/components/examples/ldap-mapping-team'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ldap_dn:
                  type: string
                  description: The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.
              required:
              - ldap_dn
            examples:
              default:
                value:
                  ldap_dn: cn=Enterprise Ops,ou=teams,dc=github,dc=com
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: ldap
  /admin/ldap/teams/{team_id}/sync:
    post:
      summary: APIs.io Engineering Platform Sync LDAP mapping for a team
      description: Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready.
      operationId: enterprise-admin/sync-ldap-mapping-for-team
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/ldap#sync-ldap-mapping-for-a-team
      parameters:
      - $ref: '#/components/parameters/team-id'
      responses:
        '201':
          description: Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
              examples:
                default:
                  value:
                    status: queued
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: ldap
  /admin/ldap/users/{username}/mapping:
    patch:
      summary: APIs.io Engineering Platform Update LDAP mapping for a user
      description: ''
      operationId: enterprise-admin/update-ldap-mapping-for-user
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-user
      parameters:
      - $ref: '#/components/parameters/username'
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ldap-mapping-user'
              examples:
                default:
                  $ref: '#/components/examples/ldap-mapping-user'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ldap_dn:
                  type: string
                  description: The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.
              required:
              - ldap_dn
            examples:
              default:
                value:
                  ldap_dn: uid=asdf,ou=users,dc=github,dc=com
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: ldap
  /admin/ldap/users/{username}/sync:
    post:
      summary: APIs.io Engineering Platform Sync LDAP mapping for a user
      description: Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready.
      operationId: enterprise-admin/sync-ldap-mapping-for-user
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/ldap#sync-ldap-mapping-for-a-user
      parameters:
      - $ref: '#/components/parameters/username'
      responses:
        '201':
          description: Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
              examples:
                default:
                  value:
                    status: queued
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: ldap
  /admin/organizations:
    post:
      summary: APIs.io Engineering Platform Create an organization
      description: ''
      operationId: enterprise-admin/create-org
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/orgs#create-an-organization
      responses:
        '201':
          description: Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/organization-simple'
              examples:
                default:
                  $ref: '#/components/examples/organization-simple'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                login:
                  type: string
                  description: The organization's username.
                admin:
                  type: string
                  description: The login of the user who will manage this organization.
                profile_name:
                  type: string
                  description: The organization's display name.
              required:
              - login
              - admin
            examples:
              default:
                value:
                  login: github
                  profile_name: GitHub, Inc.
                  admin: monalisaoctocat
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: orgs
  /admin/organizations/{org}:
    patch:
      summary: APIs.io Engineering Platform Update an organization name
      description: ''
      operationId: enterprise-admin/update-org-name
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/orgs#update-an-organization-name
      parameters:
      - $ref: '#/components/parameters/org'
      responses:
        '202':
          description: Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  url:
                    type: string
              examples:
                default:
                  value:
                    message: Job queued to rename organization. It may take a few minutes to complete.
                    url: https://<hostname>/api/v3/organizations/1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                login:
                  type: string
                  description: The organization's new name.
              required:
              - login
            examples:
              default:
                value:
                  login: the-new-octocats
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: orgs
  /admin/pre-receive-environments:
    get:
      summary: APIs.io Engineering Platform List pre-receive environments
      description: ''
      operationId: enterprise-admin/list-pre-receive-environments
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/pre-receive-environments#list-pre-receive-environments
      parameters:
      - $ref: '#/components/parameters/per-page'
      - $ref: '#/components/parameters/page'
      - $ref: '#/components/parameters/direction'
      - name: sort
        in: query
        required: false
        schema:
          type: string
          enum:
          - created
          - updated
          - name
          default: created
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/pre-receive-environment'
              examples:
                default:
                  $ref: '#/components/examples/pre-receive-environment-items'
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: pre-receive-environments
    post:
      summary: APIs.io Engineering Platform Create a pre-receive environment
      description: ''
      operationId: enterprise-admin/create-pre-receive-environment
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/pre-receive-environments#create-a-pre-receive-environment
      responses:
        '201':
          description: Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pre-receive-environment'
              examples:
                default:
                  $ref: '#/components/examples/pre-receive-environment'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: The new pre-receive environment's name.
                image_url:
                  type: string
                  description: URL from which to download a tarball of this environment.
              required:
              - name
              - image_url
            examples:
              default:
                value:
                  name: DevTools Hook Env
                  image_url: https://my_file_server/path/to/devtools_env.tar.gz
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: pre-receive-environments
  /admin/pre-receive-environments/{pre_receive_environment_id}:
    get:
      summary: APIs.io Engineering Platform Get a pre-receive environment
      description: ''
      operationId: enterprise-admin/get-pre-receive-environment
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/pre-receive-environments#get-a-pre-receive-environment
      parameters:
      - $ref: '#/components/parameters/pre-receive-environment-id'
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pre-receive-environment'
              examples:
                default:
                  $ref: '#/components/examples/pre-receive-environment'
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: pre-receive-environments
    patch:
      summary: APIs.io Engineering Platform Update a pre-receive environment
      description: You cannot modify the default environment. If you attempt to modify the default environment, you will receive a `422 Unprocessable Entity` response.
      operationId: enterprise-admin/update-pre-receive-environment
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/pre-receive-environments#update-a-pre-receive-environment
      parameters:
      - $ref: '#/components/parameters/pre-receive-environment-id'
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pre-receive-environment'
              examples:
                default-response:
                  $ref: '#/components/examples/pre-receive-environment-default-response'
        '422':
          description: Client Errors
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        resource:
                          type: string
                        code:
                          type: string
                        message:
                          type: string
              examples:
                client-errors:
                  value:
                    message: Validation Failed
                    errors:
                    - resource: PreReceiveEnvironment
                      code: custom
                      message: Cannot modify or delete the default environment
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: This pre-receive environment's new name.
                image_url:
                  type: string
                  description: URL from which to download a tarball of this environment.
            examples:
              default:
                value:
                  name: DevTools Hook Env
                  image_url: https://my_file_server/path/to/devtools_env.tar.gz
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: pre-receive-environments
    delete:
      summary: APIs.io Engineering Platform Delete a pre-receive environment
      description: 'If you attempt to delete an environment that cannot be deleted, you will receive a `422 Unprocessable Entity` response.


        The possible error messages are:


        *   _Cannot modify or delete the default environment_

        *   _Cannot delete environment that has hooks_

        *   _Cannot delete environment when download is in progress_'
      operationId: enterprise-admin/delete-pre-receive-environment
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/pre-receive-environments#delete-a-pre-receive-environment
      parameters:
      - $ref: '#/components/parameters/pre-receive-environment-id'
      responses:
        '204':
          description: Response
        '422':
          description: Client Errors
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        resource:
                          type: string
                        code:
                          type: string
                        message:
                          type: string
              examples:
                client-errors:
                  value:
                    message: Validation Failed
                    errors:
                    - resource: PreReceiveEnvironment
                      code: custom
                      message: Cannot modify or delete the default environment
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: pre-receive-environments
  /admin/pre-receive-environments/{pre_receive_environment_id}/downloads:
    post:
      summary: APIs.io Engineering Platform Start a pre-receive environment download
      description: 'Triggers a new download of the environment tarball from the environment''s `image_url`. When the download is finished, the newly downloaded tarball will overwrite the existing environment.


        If a download cannot be triggered, you will receive a `422 Unprocessable Entity` response.


        The possible error messages are:


        * _Cannot modify or delete the default environment_

        * _Can not start a new download when a download is in progress_'
      operationId: enterprise-admin/start-pre-receive-environment-download
      tags:
      - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/pre-receive-environments#start-a-pre-receive-environment-download
      parameters:
      - $ref: '#/components/parameters/pre-receive-environment-id'
      responses:
        '202':
          description: Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pre-receive-environment-download-status'
              examples:
                default-response:
                  $ref: '#/components/examples/pre-receive-environment-download-status-default-response'
        '422':
          description: Client Errors
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      p

# --- truncated at 32 KB (342 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/engineering-platform/refs/heads/main/openapi/engineering-platform-enterprise-admin-api-openapi.yml