Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ You can create a `.github-private` repository using a template or from scratch.
1. In the top-right corner, click "Use this template" and create a new repository in your chosen organization named `.github-private`. Settings will apply to members regardless of whether they can access the repository, so choose the visibility based on who should be able to suggest changes:
* To grant **read access to all members** of your enterprise, choose {% octicon "organization" aria-hidden="true" aria-label="organization" %} **Internal**.
* To **manually grant access after creation**, choose {% octicon "lock" aria-hidden="true" aria-label="lock" %} **Private**.

To use this repository for a member-only organization profile README, you must choose **Private** visibility. See [AUTOTITLE](/organizations/collaborating-with-groups-in-organizations/customizing-your-organizations-profile#adding-a-member-only-organization-profile-readme). Member-only profile READMEs don't load from internal repositories.
1. Update the template README as needed. Consider including creation guidelines for {% data variables.copilot.custom_agents_short %} or compliance considerations specific to your enterprise.

> [!NOTE]
Expand Down
40 changes: 40 additions & 0 deletions content/rest/copilot/copilot-team-customizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,44 @@ category:
- Use Copilot and AI services
---

## About {% data variables.product.prodname_copilot_short %} team customizations

A {% data variables.product.prodname_copilot_short %} customization document defines the plugins and plugin marketplaces available to members of an organization team. {% data variables.product.github %} stores one document for each team. You can create and manage the document on the team's **Customize Copilot** tab, or with these endpoints.

The customization document supports these top-level keys:

* `pluginAssignments`: Plugins available to the team, keyed by `PLUGIN@MARKETPLACE`. Each plugin is enabled by default.
* `extraKnownMarketplaces`: Additional plugin marketplaces available to the team, keyed by marketplace name.

The request and response examples below show a plugin and its marketplace.

## Access requirements

The authenticated user must be an organization owner or a maintainer of the team. For an enterprise team assigned to the organization, including one synced with an identity provider group, the authenticated user must be an organization owner. The required scopes and permissions are in addition to these role requirements.

| Token type | Read customizations | Replace or delete customizations |
| --- | --- | --- |
| {% data variables.product.pat_v1_caps %} or {% data variables.product.prodname_oauth_app %} token | `read:org` or `admin:org` scope | `admin:org` scope |
| {% data variables.product.pat_v2_caps %} or {% data variables.product.prodname_github_app %} user access token | Organization "Copilot agent settings" permission with read access | Organization "Copilot agent settings" permission with write access |

## Creating and updating customizations

To create a team's customization document, send the complete document as the JSON request body to the `PUT` endpoint. Do not wrap it in another object. A successful request returns `200 OK` with the submitted document.

The `PUT` endpoint replaces the entire document. It does not merge the request with existing customizations. Any plugin or marketplace omitted from the request is removed from the stored document.

To edit an existing document:

1. Get the team's current customization document using the `GET` endpoint.
1. Edit the document, retaining every plugin and marketplace you want to keep.
1. Send the complete document to the `PUT` endpoint.

Reading a document before replacing it does not prevent another edit between requests.

The `GET` endpoint returns `404 Not Found` when the team has no document. A `404` can also mean the team is not accessible to the authenticated user.

To remove the team's customization document, use the `DELETE` endpoint. It returns `204 No Content` even if the document does not exist. This does not delete the team.

Invalid documents return `422 Unprocessable Entity` with the reason. A concurrent edit can cause a write or delete to return `409 Conflict`.

<!-- Content after this section is automatically generated -->
Loading