---
title: "Overwrite the list of denylisted usernames"
method: PUT
path: "/username/denylist/"
tags: ["Profile"]
---

# Overwrite the list of denylisted usernames

`PUT /username/denylist/`

This endpoint replaces the current denylist with the provided list of usernames.
If the operation cannot be completed due to some usernames already being in use, the response will contain a list of those usernames.
In this case, the denylist will not be modified, and an admin can first overwrite the usernames being used (see the POST api/profile/deny endpoint), and then try again.

None of the usernames in the request need to obey the restrictions regarding length and allowed characters.

Important note: denylists rely on unique usernames being enforced at the organization level.

## Headers

- `x-m2-organization-id` string, required

## Request body

- string[] — An array of usernames to add to the denylist

## Response `204`

Default Response

- unknown

## Other responses

- `409` — The response of adding usernames to the denylist in case some are already in use

---

[API](https://skmtc.net/otherside/apis/user-profile.md) · [All operations](https://skmtc.net/otherside/apis/user-profile/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/otherside/user-profile/revisions/a38c15dd49ef/schema)
