Sample - GitHub REST API
PUT/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.

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

2 parameters · 1 body field
orgstringrequired
The organization name. The name is not case sensitive.
runner_group_idintegerrequired
Unique identifier of the self-hosted runner group.
runnersarray<integer>required
List of runner IDs to add to the runner group.

1 status code
204Response