Check if a user is blocked by an organization
GET
/orgs/{org}/blocks/{username} https://api.github.com
Returns a 204 if the given user is blocked by the given organization. Returns a 404 if the organization is not blocking the user, or if the user account has been identified as spam by GitHub.
Parameters
path Path Parameters
| Name | Type |
|---|---|
org
required
The organization name. The name is not case sensitive. | string |
username
required
The handle for the GitHub user account. | string |
Responses
204
If the user is blocked
unknown
Client Errors
404 application/json
If the user is not blocked
interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}