MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / add_seats

Method add_seats

github/Copilot.py:64–77  ·  view source on GitHub ↗

:calls: `POST /orgs/{org}/copilot/billing/selected_users `_ :param selected_usernames: List of usernames to add Copilot seats for :rtype: int :return: Number of seats created

(self, selected_usernames: list[str])

Source from the content-addressed store, hash-verified

62 )
63
64 def add_seats(self, selected_usernames: list[str]) -> int:
65 """
66 :calls: `POST /orgs/{org}/copilot/billing/selected_users <https://docs.github.com/en/rest/copilot/copilot-business>`_
67 :param selected_usernames: List of usernames to add Copilot seats for
68 :rtype: int
69 :return: Number of seats created
70 """
71 url = f"/orgs/{self._org_name.value}/copilot/billing/selected_users"
72 _, data = self._requester.requestJsonAndCheck(
73 "POST",
74 url,
75 input={"selected_usernames": selected_usernames},
76 )
77 return data["seats_created"]
78
79 def remove_seats(self, selected_usernames: list[str]) -> int:
80 """

Callers 1

testAddSeatsMethod · 0.80

Calls 1

requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected