Skip to main content

Create a self-hosted runner group for an enterprise

Creates a new self-hosted runner group for an enterprise. You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.

POST/enterprises/{enterprise}/actions/runner-groups
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
enterprise string
required

The slug version of the enterprise name. You can also substitute this value with the enterprise id.

Body Params
required
application/jsonobject
allows_public_repositories boolean
optional

Whether the runner group can be used by `public` repositories.

name string
required

Name of the runner group.

runners array[integer]
optional

List of runner IDs to add to the runner group.

selected_organization_ids array[integer]
optional

List of organization IDs that can access the runner group.

visibility string
optional

Visibility of a runner group. You can select all organizations or select individual organization. Can be one of: `all` or `selected`

Responses

Response

allows_public_repositories boolean
required
default boolean
required
id number
required
name string
required
runners_url string
required
selected_organizations_url string
optional
visibility string
required