---
title: "Create a self-hosted runner group for an organization"
method: POST
path: "/orgs/{org}/actions/runner-groups"
tags: ["actions"]
---

# Create a self-hosted runner group for an organization

`POST /orgs/{org}/actions/runner-groups`

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

OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.

## Path parameters

- `org` string, required

## Request body

- object
  - `name` string, required — Name of the runner group.
  - `visibility` 'selected' | 'all' | 'private' — Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.
  - `selected_repository_ids` integer[] — List of repository 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`.
  - `network_configuration_id` string — The identifier of a hosted compute network configuration.

## Response `201`

Response

- RunnerGroupsOrg
  - `id` number, required
  - `name` string, required
  - `visibility` string, required
  - `default` boolean, required
  - `selected_repositories_url` string — Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`
  - `runners_url` string, required
  - `hosted_runners_url` string
  - `network_configuration_id` string — The identifier of a hosted compute network configuration.
  - `inherited` boolean, required
  - `inherited_allows_public_repositories` boolean
  - `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/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/versions/80850db290cd/schema)
