Skip to main content

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

Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise. You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.

PUT/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
enterprise string
required

The slug version of the enterprise name. You can also substitute this value with the enterprise id.

runner_group_id integer
required

Unique identifier of the self-hosted runner group.

Body Params
required
application/jsonobject
selected_organization_ids array[integer]
required

List of organization IDs that can access the runner group.

Responses

Response