---
title: "Enable/disable a user"
method: POST
path: "/chat/users/setenabled"
tags: ["Internal", "Chat"]
---

# Enable/disable a user

`POST /chat/users/setenabled`

## Query parameters

- `accessToken` string, required

## Request body

- object
  - `userId` string
  - `enabled` boolean

## Response `200`

User status has been updated

- BaseAPIResponse — Simple API response
  - `message` string
  - `success` boolean

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `default` — Unexpected error

## Changes

> 104 revisions in range; 39 could not be searched.

- **2021-09-23** `02fef72d775b` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/owncast/apis/owncast-apis/changes/chat/users/setenabled/post.md)

---

[API](https://skmtc.dev/owncast/apis/owncast-apis.md) · [All operations](https://skmtc.dev/owncast/apis/owncast-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/owncast/owncast-apis/revisions/e2ce1f2fcdfa/schema)
