Skip to main content

blocking

Overview

Nameblocking
TypeResource
Idgithub.users.blocking

Fields

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