# Copilot 팀 사용자 지정을 위한 REST API 엔드포인트

REST API를 사용하여 팀의 사용자 지정을 관리 Copilot 합니다.

## Copilot 팀 사용자 지정 정보

Copilot 사용자 지정 문서는 조직 팀 구성원이 사용할 수 있는 플러그 인 및 플러그 인 마켓플레이스를 정의합니다. 
GitHub 은 각 팀에 대해 하나의 문서를 저장합니다. 팀의 **사용자 지정 Copilot** 탭 또는 이러한 엔드포인트를 사용하여 문서를 만들고 관리할 수 있습니다.

사용자 지정 문서에서는 다음 최상위 키를 지원합니다.

* `pluginAssignments`: 팀에서 사용할 수 있는 플러그인으로, `PLUGIN@MARKETPLACE`를 키로 합니다. 각 플러그 인은 기본적으로 사용하도록 설정됩니다.
* `extraKnownMarketplaces`: 팀에서 사용할 수 있는 추가 플러그 인 마켓플레이스(마켓플레이스 이름으로 키 지정).

아래 요청 및 응답 예제는 플러그 인 및 해당 마켓플레이스를 보여 줍니다.

## 액세스 요구 사항

인증된 사용자는 조직 소유자 또는 팀 관리자여야 합니다. ID 공급자 그룹과 동기화된 엔터프라이즈 팀을 포함하여 조직에 할당된 엔터프라이즈 팀의 경우 인증된 사용자는 조직 소유자여야 합니다. 필요한 범위 및 권한은 이러한 역할 요구 사항 외에 추가됩니다.

| 토큰 유형 | 사용자 지정 읽기 | 사용자 지정 바꾸기 또는 삭제 |
| --- | --- | --- |
| Personal access token (classic) 또는 OAuth app 토큰 | `read:org` 또는 `admin:org` 범위 | `admin:org` 범위 |
| Fine-grained personal access token 또는 GitHub App 사용자 액세스 토큰 | 읽기 권한이 있는 조직 "Copilot 에이전트 설정" 권한 | 쓰기 액세스 권한이 있는 조직 "Copilot 에이전트 설정" 권한 |

## 사용자 지정 만들기 및 업데이트

팀의 사용자 지정 문서를 만들려면 전체 문서를 JSON 요청 본문으로 `PUT` 엔드포인트로 보냅니다. 다른 개체에 래핑하지 마세요. 성공한 요청은 `200 OK`이(가) 제출된 문서와 함께 반환됩니다.

`PUT` 엔드포인트가 전체 문서를 대체합니다. 요청을 기존 사용자 지정과 병합하지 않습니다. 요청에서 생략된 플러그 인 또는 마켓플레이스는 저장된 문서에서 제거됩니다.

기존 문서를 편집하려면 다음을 수행합니다.

1. `GET` 엔드포인트를 사용하여 팀의 현재 사용자 지정 문서를 가져옵니다.
1. 문서를 편집하고 유지하려는 모든 플러그인과 마켓플레이스를 그대로 둡니다
1. 전체 문서를 `PUT` 엔드포인트로 보냅니다.

문서를 바꾸기 전에 읽어도 요청 간에 또 다른 편집이 방지되지는 않습니다.

`GET` 엔드포인트는 팀에 문서가 없을 때 `404 Not Found`를 반환합니다. 
`404`는 인증된 사용자가 팀에 액세스할 수 없음을 의미할 수도 있습니다.

팀의 사용자 지정 문서를 제거하려면 `DELETE` 엔드포인트를 사용합니다. 문서가 없더라도 `204 No Content`를 반환합니다. 이렇게 하면 팀이 삭제되지 않습니다.

잘못된 문서는 이유와 함께 `422 Unprocessable Entity`을(를) 반환합니다. 동시에 편집하면 쓰기 또는 삭제 시 `409 Conflict`이(가) 반환될 수 있습니다.

> [!NOTE]
> Most endpoints use `Authorization: Bearer <YOUR-TOKEN>` and `Accept: application/vnd.github+json` headers, plus `X-GitHub-Api-Version: 2026-03-10`. Curl examples below omit these standard headers for brevity.

## Get Copilot customizations for a team

```
GET /orgs/{org}/teams/{team_slug}/copilot/customizations
```

Note

This endpoint is in public preview and is subject to change.

Gets the GitHub-managed Copilot customizations of a team.
The authenticated user must be an organization owner or a team maintainer. Teams that keep their
customizations in a repository return 409.
OAuth app tokens and personal access tokens (classic) need the admin:org or read:org scope to use this endpoint.

### Parameters

#### Headers

- **`accept`** (string)
  Setting to `application/vnd.github+json` is recommended.

#### Path and query parameters

- **`org`** (string) (required)
  The organization name. The name is not case sensitive.

- **`team_slug`** (string) (required)
  The slug of the team name.

### HTTP response status codes

- **200** - OK

- **401** - Requires authentication

- **403** - Forbidden

- **404** - Resource not found

- **409** - Conflict

- **422** - Validation failed, or the endpoint has been spammed.

- **500** - Internal Error

- **503** - Service unavailable

### Code examples

#### Example

**Request:**

```curl
curl -L \
  -X GET \
  https://api.github.com/orgs/ORG/teams/TEAM_SLUG/copilot/customizations
```

**Response schema (Status: 200):**

* `pluginAssignments`: object, additional properties: object
* `extraKnownMarketplaces`: object, additional properties: object

## Set Copilot customizations for a team

```
PUT /orgs/{org}/teams/{team_slug}/copilot/customizations
```

Note

This endpoint is in public preview and is subject to change.

Replaces the GitHub-managed Copilot customizations of a team, creating them on the first write.
The authenticated user must be an organization owner or a team maintainer. Teams that keep their
customizations in a repository return 409. Documents that fail validation return 422 with the reason.
OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

### Parameters

#### Headers

- **`accept`** (string)
  Setting to `application/vnd.github+json` is recommended.

#### Path and query parameters

- **`org`** (string) (required)
  The organization name. The name is not case sensitive.

- **`team_slug`** (string) (required)
  The slug of the team name.

#### Body parameters

- **`pluginAssignments`** (object)
  Plugins assigned to the team, keyed by PLUGIN@MARKETPLACE.
  - **`key`** (object)
    A user-defined key to represent an item in pluginAssignments.
    - **`state`** (string)
      The assignment state.
      Can be one of: `defaultEnabled`

- **`extraKnownMarketplaces`** (object)
  Additional plugin marketplaces available to the team, keyed by marketplace name.
  - **`key`** (object)
    A user-defined key to represent an item in extraKnownMarketplaces.

### HTTP response status codes

- **200** - OK

- **401** - Requires authentication

- **403** - Forbidden

- **404** - Resource not found

- **409** - Conflict

- **422** - Validation failed, or the endpoint has been spammed.

- **500** - Internal Error

- **503** - Service unavailable

### Code examples

#### Example

**Request:**

```curl
curl -L \
  -X PUT \
  https://api.github.com/orgs/ORG/teams/TEAM_SLUG/copilot/customizations \
  -d '{
  "pluginAssignments": {
    "code-review@acme-marketplace": {
      "state": "defaultEnabled"
    }
  },
  "extraKnownMarketplaces": {
    "acme-marketplace": {
      "source": {
        "source": "github",
        "repo": "acme/copilot-marketplace"
      }
    }
  }
}'
```

**Response schema (Status: 200):**

Same response schema as [Get Copilot customizations for a team](#get-copilot-customizations-for-a-team).

## Delete Copilot customizations for a team

```
DELETE /orgs/{org}/teams/{team_slug}/copilot/customizations
```

Note

This endpoint is in public preview and is subject to change.

Deletes the GitHub-managed Copilot customizations of a team. Deleting customizations that don't exist succeeds.
The authenticated user must be an organization owner or a team maintainer. Teams that keep their
customizations in a repository return 409.
OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

### Parameters

#### Headers

- **`accept`** (string)
  Setting to `application/vnd.github+json` is recommended.

#### Path and query parameters

- **`org`** (string) (required)
  The organization name. The name is not case sensitive.

- **`team_slug`** (string) (required)
  The slug of the team name.

### HTTP response status codes

- **204** - No Content

- **401** - Requires authentication

- **403** - Forbidden

- **404** - Resource not found

- **409** - Conflict

- **422** - Validation failed, or the endpoint has been spammed.

- **500** - Internal Error

- **503** - Service unavailable

### Code examples

#### Example

**Request:**

```curl
curl -L \
  -X DELETE \
  https://api.github.com/orgs/ORG/teams/TEAM_SLUG/copilot/customizations
```

**Response schema (Status: 204):**