orgs

Block a user from an organization

Blocks 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.

put/orgs/{org}/blocks/{username}

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/orgs/{org}/blocks/{username}
  • Auth: none declared

Path parameters

orgstring required

The organization name. The name is not case sensitive.

usernamestring required

The handle for the GitHub user account.

Response

Response

Changes

No recorded changes to this operation across all 23 revisions of this API.