Skip to main content

blocking

Overview

Nameblocking
TypeResource
Idgithub.users.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_by_authenticated_userSELECTList the users you've blocked on your personal account.
blockEXECusernameBlocks the given user and returns a 204. If the authenticated user cannot block the given user a 422 is returned.
check_blockedEXECusernameReturns a 204 if the given user is blocked by the authenticated user. Returns a 404 if the given user is not blocked by the authenticated user, or if the given user account has been identified as spam by GitHub.
unblockEXECusernameUnblocks the given user and returns a 204.