/orgs/{org}/copilot/billing/selected_teamsRemove teams from an organization's Copilot subscription
Removes Copilot seat assignments for all members of each specified team by marking their seats for cancellation. Use selected_teams to identify the teams whose members should lose access at the end of the current billing cycle, unless they retain access through another team. The response reports the number of seats marked as pending cancellation.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
The teams whose members should have their Copilot seats marked for cancellation.
A 401 is returned when authentication is missing or invalid. A 403 is returned when you are not an organization owner or your token lacks the manage_billing:copilot or admin:org scope. A 404 is returned when the organization or specified resource cannot be found. A 422 is returned when Copilot Business or Enterprise, billing, the public code suggestions policy, or a valid Copilot access setting is not configured. A 500 is returned for an internal server error. selected_teams must contain at least one team name, and org must identify the target organization.