provider actions PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners
@utdk/github /orgs/{org}/actions/runner-groups/{runner_group_id}/runners
Set self-hosted runners in a group for an organization
Replaces the list of self-hosted runners that are part of an organization runner group. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
org path required
The organization name. The name is not case sensitive.
string
runner_group_id path required
Unique identifier of the self-hosted runner group.
integer

Try it

Authentication
Configure credentials for GitHub v3 REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

actions.setSelfHostedRunnersInGroupForOrg
PUT/orgs/{org}/actions/runner-groups/{runner_group_id}/runners
Replaces the list of self-hosted runners that are part of an organization runner group. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.

Parameters

required

The organization name. The name is not case sensitive.

required

Unique identifier of the self-hosted runner group.

Input

required

List of runner IDs to add to the runner group.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.actions.setSelfHostedRunnersInGroupForOrg()