actions

Set self-hosted runners settings for an organization

Sets the settings for self-hosted runners for an organization.

OAuth app tokens and personal access tokens (classic) need the admin:org scope or the "Actions policies" fine-grained permission to use this endpoint.

put/orgs/{org}/actions/permissions/self-hosted-runners

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/orgs/{org}/actions/permissions/self-hosted-runners
  • Auth: none declared

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Request body

enabled_repositories'all' | 'selected' | 'none' required

The policy that controls whether self-hosted runners can be used in the organization

Response

No content

Changes

No recorded changes to this operation across all 23 revisions of this API.