Skip to content

Set repository access for a self-hosted runner group in an organization

PUT
/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories

Replaces the list of repositories that have access to a self-hosted runner group configured in an organization.

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
selected_repository_ids
required

List of repository IDs that can access the runner group.

Array<integer>
Examples
Example default
{
"selected_repository_ids": [
32,
91
]
}

Response