---
title: "拉黑用户"
method: POST
path: "/api/chat/blockUser"
tags: ["聊天相关接口"]
---

# 拉黑用户

`POST /api/chat/blockUser`

## Request

- Base URL: `http://api.oloo.live`
- URL: `http://api.oloo.live/api/chat/blockUser`
- Auth: none declared

将指定用户加入黑名单

## Query parameters

- `uid` integer, required
- `targetUid` integer, required

## Response `200`

OK

- WebServiceMessage
  - `code` integer
  - `data` unknown
  - `message` string
  - `time` integer

---

[API](https://skmtc.dev/oloo/apis/oloo-api.md) - [All operations](https://skmtc.dev/oloo/apis/oloo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/oloo/apis/oloo-api/revisions/ada91d3a60e4?raw)
