---
title: "Ban a member from a group chat"
method: POST
path: "/v1/chat/rooms/{roomId}/members/{userId}/ban"
tags: ["chat"]
---

# Ban a member from a group chat

`POST /v1/chat/rooms/{roomId}/members/{userId}/ban`

## Request

- Base URL: `https://app.legend.trade/api/rest`
- URL: `https://app.legend.trade/api/rest/v1/chat/rooms/{roomId}/members/{userId}/ban`
- Auth: HTTP bearer

## Path parameters

- `roomId` string, uuid, required
- `userId` string, uuid, required

## Response `200`

Successful response

- BanMemberOutput
  - `success` boolean, required

## Other responses

- `400`: Invalid input data
- `401`: Authorization not provided
- `403`: Insufficient access
- `500`: Internal server error

---

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