---
title: "Set Copilot cloud agent permissions for an organization"
method: PUT
path: "/orgs/{org}/copilot/coding-agent/permissions"
tags: ["copilot"]
---

# Set Copilot cloud agent permissions for an organization

`PUT /orgs/{org}/copilot/coding-agent/permissions`

> [!NOTE]
> This endpoint is in public preview and is subject to change.

Sets the policy for which repositories in an organization can use Copilot cloud agent.

Organization owners can configure whether Copilot cloud agent is enabled for
all repositories, selected repositories, or no repositories owned by the organization.

OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.

## Path parameters

- `org` string, required

## Request body

- object
  - `enabled_repositories` 'all' | 'selected' | 'none', required — The policy for which repositories can use Copilot cloud agent. Can be one of `all`, `selected`, or `none`.

## Response `204`

No Content

## Other responses

- `401` — Requires authentication
- `403` — Forbidden
- `404` — Resource not found
- `422` — Validation failed, or the endpoint has been spammed.
- `500` — Internal Error

---

[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)
