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

Method cancel_invitation

github/Organization.py:1454–1462  ·  view source on GitHub ↗

:calls: `DELETE /orgs/{org}/invitations/{invitation_id} `_ :param invitee: :class:`github.NamedUser.NamedUser` :rtype: bool

(self, invitee: NamedUser)

Source from the content-addressed store, hash-verified

1452 )
1453
1454 def cancel_invitation(self, invitee: NamedUser) -> bool:
1455 """
1456 :calls: `DELETE /orgs/{org}/invitations/{invitation_id} <https://docs.github.com/en/rest/reference/orgs#cancel-an-organization-invitation>`_
1457 :param invitee: :class:`github.NamedUser.NamedUser`
1458 :rtype: bool
1459 """
1460 assert isinstance(invitee, github.NamedUser.NamedUser), invitee
1461 status, headers, data = self._requester.requestJson("DELETE", f"{self.url}/invitations/{invitee.id}")
1462 return status == 204
1463
1464 def has_in_members(self, member: NamedUser) -> bool:
1465 """

Callers 1

testCancelMethod · 0.80

Calls 1

requestJsonMethod · 0.80

Tested by

no test coverage detected