---
title: "Block a user (idempotent)"
method: POST
path: "/users/{userId}/block"
tags: ["Users"]
---

# Block a user (idempotent)

`POST /users/{userId}/block`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/users/{userId}/block`
- Auth: HTTP bearer

## Path parameters

- `userId` string, uuid, required

## Response `204`

Blocked

## Other responses

- `404`: No such user, or the caller's own id

---

[API](https://skmtc.dev/whatareyoudo/apis/whatcha-api.md) · [All operations](https://skmtc.dev/whatareyoudo/apis/whatcha-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatareyoudo/apis/whatcha-api/revisions/48dd8a54abea?raw)
