Skip to main content

Update a self-hosted runner group for an organization

Updates the `name` and `visibility` of a self-hosted runner group in an organization. You must authenticate using an access token with the `admin:org` scope to use this endpoint.

PATCH/orgs/{org}/actions/runner-groups/{runner_group_id}
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
org string
required
runner_group_id integer
required

Unique identifier of the self-hosted runner group.

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.

visibility string
optional

Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories. Can be one of: `all`, `selected`, or `private`.

Responses

application/json runner-groups-org object

Response

allows_public_repositories boolean
required
default boolean
required
id number
required
inherited boolean
required
inherited_allows_public_repositories boolean
optional
name string
required
runners_url string
required
selected_repositories_url string
optional

Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`

visibility string
required