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 stringrequired
The slug version of the enterprise name. You can also substitute this value with the enterprise id.
Body Params
requiredapplication/jsonobject
allows_public_repositories boolean
optionalWhether the runner group can be used by `public` repositories.
name string
requiredName of the runner group.
runners array[integer]
optionalList of runner IDs to add to the runner group.
selected_organization_ids array[integer]
optionalList of organization IDs that can access the runner group.
visibility string
optionalVisibility of a runner group. You can select all organizations or select individual organization. Can be one of: `all` or `selected`
Responses
application/json runner-groups-enterprise object
Response
allows_public_repositories boolean
requireddefault boolean
requiredid number
requiredname string
requiredrunners_url string
requiredselected_organizations_url string
optionalvisibility string
required