---
title: "Mute user"
method: POST
path: "/api/user/mutes"
tags: ["User"]
---

# Mute user

`POST /api/user/mutes`

Persist a one-way mute. Body mutedUserId accepts a User.id or display handle (chat messages historically only sent the handle).

## Request body

- object
  - `mutedUserId` string
  - `handle` string

## Response `201`

{ success, data: { success, id, muterId, mutedId } }

## Other responses

- `400` — { success: false, error, code: VALIDATION_ERROR } — missing/empty mutedUserId or handle, or self-mute
- `401` — { success: false, error, code: UNAUTHORIZED }
- `404` — { success: false, error, code: NOT_FOUND } — mutedUserId/handle did not resolve
- `500` — { success: false, error, code: INTERNAL_ERROR }

---

[API](https://skmtc.net/d-sports-ecosystem/apis/d-sports-api.md) · [All operations](https://skmtc.net/d-sports-ecosystem/apis/d-sports-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/d-sports-ecosystem/d-sports-api/revisions/cbc84b00330e/schema)
