Skip to main content
Skip to content

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 엔드포인트를 사용하여 팀의 현재 사용자 지정 문서를 가져옵니다.
  2. 문서를 편집하고 유지하려는 모든 플러그인과 마켓플레이스를 그대로 둡니다
  3. 전체 문서를 PUT 엔드포인트로 보냅니다.

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

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

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

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

Get Copilot customizations for a team

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.

"Get Copilot customizations for a team"에 대한 세분화된 액세스 토큰

이 엔드포인트는 다음 세분화된 토큰 형식에서 작동합니다.:

세분화된 토큰은 필수 권한 집합을 포함해야 합니다.:

  • "Copilot agent settings" organization permissions (read)

"Get Copilot customizations for a team"에 대한 매개 변수

머리글
이름, 유형, 설명
accept string

Setting to application/vnd.github+json is recommended.

경로 매개 변수
이름, 유형, 설명
org string 필수

The organization name. The name is not case sensitive.

team_slug string 필수

The slug of the team name.

"Get Copilot customizations for a team"에 대한 HTTP 응답 상태 코드

상태 코드설명
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

"Get Copilot customizations for a team"에 대한 코드 샘플

요청 예제

get/orgs/{org}/teams/{team_slug}/copilot/customizations
curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/orgs/ORG/teams/TEAM_SLUG/copilot/customizations

Response

Status: 200
{ "pluginAssignments": { "code-review@acme-marketplace": { "state": "defaultEnabled" } }, "extraKnownMarketplaces": { "acme-marketplace": { "source": { "source": "github", "repo": "acme/copilot-marketplace" } } } }

Set Copilot customizations for a team

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.

"Set Copilot customizations for a team"에 대한 세분화된 액세스 토큰

이 엔드포인트는 다음 세분화된 토큰 형식에서 작동합니다.:

세분화된 토큰은 필수 권한 집합을 포함해야 합니다.:

  • "Copilot agent settings" organization permissions (write)

"Set Copilot customizations for a team"에 대한 매개 변수

머리글
이름, 유형, 설명
accept string

Setting to application/vnd.github+json is recommended.

경로 매개 변수
이름, 유형, 설명
org string 필수

The organization name. The name is not case sensitive.

team_slug string 필수

The slug of the team name.

본문 매개 변수
이름, 유형, 설명
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.

값: 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.

"Set Copilot customizations for a team"에 대한 HTTP 응답 상태 코드

상태 코드설명
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

"Set Copilot customizations for a team"에 대한 코드 샘플

요청 예제

put/orgs/{org}/teams/{team_slug}/copilot/customizations
curl -L \ -X PUT \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ 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

Status: 200
{ "pluginAssignments": { "code-review@acme-marketplace": { "state": "defaultEnabled" } }, "extraKnownMarketplaces": { "acme-marketplace": { "source": { "source": "github", "repo": "acme/copilot-marketplace" } } } }

Delete Copilot customizations for a team

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.

"Delete Copilot customizations for a team"에 대한 세분화된 액세스 토큰

이 엔드포인트는 다음 세분화된 토큰 형식에서 작동합니다.:

세분화된 토큰은 필수 권한 집합을 포함해야 합니다.:

  • "Copilot agent settings" organization permissions (write)

"Delete Copilot customizations for a team"에 대한 매개 변수

머리글
이름, 유형, 설명
accept string

Setting to application/vnd.github+json is recommended.

경로 매개 변수
이름, 유형, 설명
org string 필수

The organization name. The name is not case sensitive.

team_slug string 필수

The slug of the team name.

"Delete Copilot customizations for a team"에 대한 HTTP 응답 상태 코드

상태 코드설명
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

"Delete Copilot customizations for a team"에 대한 코드 샘플

요청 예제

delete/orgs/{org}/teams/{team_slug}/copilot/customizations
curl -L \ -X DELETE \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/orgs/ORG/teams/TEAM_SLUG/copilot/customizations

Response

Status: 204