GitHub v3 REST API

Delete a self-hosted runner group from an enterprise

Deletes a self-hosted runner group for an enterprise.

You must authenticate using an access token with the admin:enterprise scope to use this endpoint.

delete
{protocol}://{hostname}/api/v3/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}

Path Parameters

enterprisestringrequired

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

runner_group_idintegerrequired

Unique identifier of the self-hosted runner group.

Response

204

Response

delete/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}
 
204

List organization access to a self-hosted runner group in an enterprise

Lists the organizations with access to a self-hosted runner group.

You must authenticate using an access token with the admin:enterprise scope to use this endpoint.

get
{protocol}://{hostname}/api/v3/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations

Query Parameters

per_pageinteger

Results per page (max 100)

Default:30

pageinteger

Page number of the results to fetch.

Default:1

Path Parameters

enterprisestringrequired

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

runner_group_idintegerrequired

Unique identifier of the self-hosted runner group.

Response

200 application/json

Response

total_countnumberrequired
organizationsarray[object]required

Organization Simple

Show Child Parameters
get/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations
 
200 application/json

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
{protocol}://{hostname}/api/v3/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations

Path Parameters

enterprisestringrequired

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

runner_group_idintegerrequired

Unique identifier of the self-hosted runner group.

Body

application/json
selected_organization_idsarray[integer]required

Unique identifier of the organization.

Response

204

Response

put/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations

Body

{ "selected_organization_ids": [ 32, 91 ] }
 
204

Add organization access to a self-hosted runner group in an enterprise

Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see “Create a self-hosted runner group for an enterprise.”

You must authenticate using an access token with the admin:enterprise scope to use this endpoint.

put
{protocol}://{hostname}/api/v3/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}

Path Parameters

enterprisestringrequired

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

runner_group_idintegerrequired

Unique identifier of the self-hosted runner group.

org_idintegerrequired

Unique identifier of an organization.

Response

204

Response

put/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}
 
204

Remove organization access to a self-hosted runner group in an enterprise

Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see “Create a self-hosted runner group for an enterprise.”

You must authenticate using an access token with the admin:enterprise scope to use this endpoint.

delete
{protocol}://{hostname}/api/v3/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}

Path Parameters

enterprisestringrequired

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

runner_group_idintegerrequired

Unique identifier of the self-hosted runner group.

org_idintegerrequired

Unique identifier of an organization.

Response

204

Response

delete/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}
 
204