/orgs/{org}/copilot/billing/selected_teamsRemove teams from the Copilot subscription for an organization
Triggers cancellation of Copilot seats for users in the specified organization teams by setting those seats to pending cancellation. Supply selected_teams with at least one team name; only organization owners can cancel seats for organization members. Affected users lose Copilot access at the end of the current billing cycle unless they retain access through another team.
The teams whose members' Copilot seats will be set to pending cancellation.
A 401 is returned when authentication is missing or invalid, and a 403 when the authenticated user is not authorized; only organization owners can cancel 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.