---
title: "PUT /users/user/{userId}/bannedStatus"
method: PUT
path: "/users/user/{userId}/bannedStatus"
tags: ["users"]
---

# PUT /users/user/{userId}/bannedStatus

`PUT /users/user/{userId}/bannedStatus`

Update banned status of user. Removes all tokens for banned users.

## Path parameters

- `userId` integer, required

## Request body

- boolean

## Response `204`

Successfully banned/unbanned user

## Other responses

- `403` — Forbidden
- `404` — User not found

---

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