---
title: "Block User by User ID"
method: POST
path: "/2/users/{id}/blocking"
tags: ["Users"]
---

# Block User by User ID

`POST /2/users/{id}/blocking`

Causes the User (in the path) to block the target User. The User (in the path) must match the User context authorizing the request

## Path parameters

- `id` string, required — Unique identifier of this User. The value must be the same as the authenticated user.

## Request body

- BlockUserRequest
  - `target_user_id` string, required — Unique identifier of this User. This is returned as a string in order to avoid complications with languages and tools that cannot handle large integers.

## Response `200`

The request has succeeded.

- BlockUserMutationResponse
  - `data` object
    - `blocking` boolean
  - `errors` Problem[]
    - `detail` string
    - `status` integer
    - `title` string, required
    - `type` string, required

## Other responses

- `default` — The request has failed.

---

[API](https://skmtc.net/mfullbrook/apis/current.md) · [All operations](https://skmtc.net/mfullbrook/apis/current/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mfullbrook/current/versions/4b066912ce32/schema)
