---
title: "Set self-hosted runners permissions for an enterprise"
method: PUT
path: "/enterprises/{enterprise}/actions/permissions/self-hosted-runners"
tags: ["enterprise-admin"]
---

# Set self-hosted runners permissions for an enterprise

`PUT /enterprises/{enterprise}/actions/permissions/self-hosted-runners`

Sets the settings for whether organizations in the enterprise are allowed to manage self-hosted runners at the repository level.

## Path parameters

- `enterprise` string, required

## Request body

- object
  - `disable_self_hosted_runners_for_all_orgs` boolean, required — When true, repository-level runners will be disabled across all organizations in the enterprise

## Response `204`

Response

## Other responses

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

---

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