Using the REST API we are able to invite users to our organization using their email address - likewise, we can list all of the pending invitations. However, there appears to be no way to cancel a pending organization invitation via the REST API - one would have expected
DELETE /org/:org/invitations/:invitation_id to be the obvious endpoint (an equivalent
DELETE /repos/:owner/:repo/invitations/:invitation_id is documented), however this results in a 404.
Is there a way to do this via the REST API?
If not, it seems like a fairly large deficiency, given that they can be cancelled via the web UI.