Search + K

Command Palette

Search for a command to run...

Sign In

Cancel an organization invitation

DELETE /orgs/{org}/invitations/{invitation_id}
Copy endpoint
https://api.github.com

Cancel an organization invitation. In order to cancel an organization invitation, the authenticated user must be an organization owner.

This endpoint triggers notifications.

Parameters

path Path Parameters

Name Type
org required

The organization name. The name is not case sensitive.

string
invitation_id required

The unique identifier of the invitation.

number

Responses

204

Response

unknown

Client Errors

404 application/json

Resource not found

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
422 application/json

Validation failed, or the endpoint has been spammed.

interface ValidationError {
message: string;
documentation_url: string;
errors?: {
resource?: string;
field?: string;
message?: string;
code: string;
index?: number;
value?: string[] | string | number | null;
}
[]
;
}