---
title: "Update a self-hosted runner group for an enterprise"
method: PATCH
path: "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}"
tags: ["enterprise-admin"]
---

# Update a self-hosted runner group for an enterprise

`PATCH /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}`

Updates the `name` and `visibility` of a self-hosted runner group in an enterprise.

You must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.

## Path parameters

- `enterprise` string, required
- `runner_group_id` integer, required

## Request body

- object
  - `name` string — Name of the runner group.
  - `visibility` 'selected' | 'all' — Visibility of a runner group. You can select all organizations or select individual organizations.
  - `allows_public_repositories` boolean — Whether the runner group can be used by `public` repositories.
  - `restricted_to_workflows` boolean — If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.
  - `selected_workflows` string[] — List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.

## Response `200`

Response

- RunnerGroupsEnterprise
  - `id` number, required
  - `name` string, required
  - `visibility` string, required
  - `default` boolean, required
  - `selected_organizations_url` string
  - `runners_url` string, required
  - `allows_public_repositories` boolean, required
  - `workflow_restrictions_read_only` boolean — If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.
  - `restricted_to_workflows` boolean — If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.
  - `selected_workflows` string[] — List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-6.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-6/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-6/versions/15db3fa0759b/schema)
