---
title: "Set self-hosted runners settings for an organization"
method: PUT
path: "/orgs/{org}/actions/permissions/self-hosted-runners"
tags: ["actions"]
---

# Set self-hosted runners settings for an organization

`PUT /orgs/{org}/actions/permissions/self-hosted-runners`

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.

## Path parameters

- `org` string, required

## Request body

- object
  - `enabled_repositories` 'all' | 'selected' | 'none', required — The policy that controls whether self-hosted runners can be used in the organization

## Response `204`

No content

## Other responses

- `403` — Forbidden
- `404` — Resource not found
- `409` — Conflict
- `422` — Validation failed, or the endpoint has been spammed.

---

[API](https://skmtc.net/github/apis/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/versions/80850db290cd/schema)
