---
title: "Block a user from an organization"
method: PUT
path: "/orgs/{org}/blocks/{username}"
tags: ["orgs"]
---

# Block a user from an organization

`PUT /orgs/{org}/blocks/{username}`

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.

## Path parameters

- `org` string, required
- `username` string, required

## Response `204`

Response

## Other responses

- `422` — Validation failed, or the endpoint has been spammed.

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
