provider actions PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}
@utdk/github /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}
Add a self-hosted runner to a group for an organization
Adds a self-hosted runner to a runner group configured in an organization. OAuth 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
runner_id path required
Unique identifier of the self-hosted runner.
integer

Try it

Authentication
Configure credentials for GitHub v3 REST API
actions.addSelfHostedRunnerToGroupForOrg
PUT/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}
Adds a self-hosted runner to a runner group configured in an organization. OAuth 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.

required

Unique identifier of the self-hosted runner.

Configure credentials above to enable sending.

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

TypeScript

import github from '@utdk/github';

await github.actions.addSelfHostedRunnerToGroupForOrg()