Skip to main content

blocking

Overview

Nameblocking
TypeResource
Idgithub.orgs.blocking

Fields

NameDatatype
idinteger
namestring
avatar_urlstring
emailstring
events_urlstring
followers_urlstring
following_urlstring
gists_urlstring
gravatar_idstring
html_urlstring
loginstring
node_idstring
organizations_urlstring
received_events_urlstring
repos_urlstring
site_adminboolean
starred_atstring
starred_urlstring
subscriptions_urlstring
typestring
urlstring

Methods

NameAccessible byRequired ParamsDescription
list_blocked_usersSELECTorgList the users blocked by an organization.
block_userEXECorg, usernameBlocks the given user on behalf of the specified organization and returns a 204. If the organization cannot block the given user a 422 is returned.
check_blocked_userEXECorg, usernameReturns 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.
unblock_userEXECorg, usernameUnblocks the given user on behalf of the specified organization.