Set self-hosted runners in a group for an organization
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
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” org
required
string
The organization name. The name is not case sensitive.
runner_group_id
required
integer
Unique identifier of the self-hosted runner group.
Request Body required
Section titled “ Request Body required ” Media type application/json
object
runners
required
List of runner IDs to add to the runner group.
Array<integer>
Examples
Example default
{ "runners": [ 9, 2 ]}Responses
Section titled “ Responses ”Response