---
title: "Set repositories allowed to use self-hosted runners in an organization"
method: PUT
path: "/orgs/{org}/actions/permissions/self-hosted-runners/repositories"
tags: ["actions"]
---

# Set repositories allowed to use self-hosted runners in an organization

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

Sets repositories that are allowed to use self-hosted runners in 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
  - `selected_repository_ids` integer[], required — IDs of repositories that can use repository-level self-hosted runners

## Response `204`

No content

## Other responses

- `403` — Forbidden
- `404` — Resource not found
- `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)
