/orgs/{org}/copilot/billing/selected_teamsAdd teams to the Copilot subscription for an organization
Creates Copilot seats for users in the specified organization teams. Supply selected_teams with at least one team name; the organization must have a Copilot Business or Copilot Enterprise subscription and a configured public code suggestions policy. The organization is billed for each seat according to its Copilot plan.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
The teams to grant access to GitHub Copilot.
A 401 is returned when authentication is missing or invalid, and a 403 when the authenticated user is not authorized; only organization owners can purchase seats, and OAuth app tokens and classic personal access tokens need either manage_billing:copilot or admin:org. A 404 is returned when the organization resource is not found, and a 422 when the organization lacks a Copilot Business or Copilot Enterprise subscription, billing setup, or a configured public code suggestions policy, or when its Copilot access setting enables access for all users or is unconfigured. A 500 indicates an internal error. The org path parameter must identify the organization; selected_teams is required and must contain at least one team name.