Sample - GitHub REST API
PATCH/orgs/{org}/actions/runner-groups/{runner_group_id}

Update a self-hosted runner group for an organization

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

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

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters · 6 body fields
orgstringrequired
The organization name. The name is not case sensitive.
runner_group_idintegerrequired
Unique identifier of the self-hosted runner group.
namestringrequired
Name of the runner group.
visibilitystringoptional
Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.
Allowed:selectedallprivate
allows_public_repositoriesbooleanoptional
Whether the runner group can be used by `public` repositories.
Default:false
restricted_to_workflowsbooleanoptional
If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.
Default:false
selected_workflowsarray<string>optional
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_idstringoptional
The identifier of a hosted compute network configuration.

1 status code
200Response
idnumberrequired
namestringrequired
visibilitystringrequired
defaultbooleanrequired
selected_repositories_urlstringoptional
Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`
runners_urlstringrequired
hosted_runners_urlstringoptional
network_configuration_idstringoptional
The identifier of a hosted compute network configuration.
inheritedbooleanrequired
inherited_allows_public_repositoriesbooleanoptional
allows_public_repositoriesbooleanrequired
workflow_restrictions_read_onlybooleanoptional
If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.
Default:false
restricted_to_workflowsbooleanoptional
If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.
Default:false
selected_workflowsarray<string>optional
List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.