Skip to main content

blocking

Overview

Nameblocking
TypeResource
Idgithub.orgs.blocking

Fields

NameDatatype
idinteger
namestring
organizations_urlstring
starred_urlstring
emailstring
starred_atstring
urlstring
node_idstring
avatar_urlstring
subscriptions_urlstring
following_urlstring
followers_urlstring
received_events_urlstring
html_urlstring
loginstring
gists_urlstring
typestring
site_adminboolean
gravatar_idstring
events_urlstring
repos_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.