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

# Create a self-hosted runner group for an enterprise

`POST /enterprises/{enterprise}/actions/runner-groups`

Creates a new self-hosted runner group for an enterprise.

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

## Path parameters

- `enterprise` string, required

## Request body

- object
  - `name` string, required — Name of the runner group.
  - `visibility` 'selected' | 'all' — Visibility of a runner group. You can select all organizations or select individual organization.
  - `selected_organization_ids` integer[] — List of organization IDs that can access the runner group.
  - `runners` integer[] — List of runner IDs to add to the runner group.
  - `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 `201`

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-5.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-5/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-5/versions/50ae54440071/schema)
