Skip to content

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.

API method documentation

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.

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
]
}

Response