{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"> [!NOTE]\n> This endpoint is in public preview and is subject to change.\n\nSets seats for all members of each team specified to \"pending cancellation\".\nThis will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through another team.\nFor more information about disabling access to Copilot, see \"[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization).\"\n\nOnly organization owners can cancel Copilot seats for their organization members.\n\nThe response contains the total number of seats set to \"pending cancellation\".\n\nOAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."}},"required":["org"],"additionalProperties":false},"body":{"type":"object","properties":{"selected_teams":{"type":"array","description":"The names of teams from which to revoke access to GitHub Copilot.","items":{"type":"string"},"minItems":1}},"required":["selected_teams"],"examples":[{"selected_teams":["engteam1","engteam2","engteam3"]}]}},"required":["path","body"],"additionalProperties":false},"name":"Remove teams from the Copilot subscription for an organization","id":"github.copilot.cancel-copilot-seat-assignment-for-teams","example":{"path":{"org":"example"},"body":{"selected_teams":["engteam1","engteam2","engteam3"]}},"maxRequests":1,"summary":false}}