---
title: "PATCH /api/users/{id}/removeRole"
method: PATCH
path: "/api/users/{id}/removeRole"
tags: ["Users"]
---

# PATCH /api/users/{id}/removeRole

`PATCH /api/users/{id}/removeRole`

## Path parameters

- `id` string, required

## Request body

- UpdateUserRoleInputDto
  - `role` 'USER' | 'QUANTIFIER' | 'FORWARDER' | 'ADMIN' | 'ROOT' | 'API_KEY_READWRITE' | 'API_KEY_READ' | 'API_KEY_DISCORD_BOT' | 'API_KEY_SETUP_WEB', required

## Response `200`

The updated user

- UserWithStatsDto

## Changes

- **2023-03-31** `af4ea0086c6f` — 8 breaking, 4 warning
  - removed the required property `_id` from the response with the `200` status
  - removed the required property `accounts` from the response with the `200` status
  - removed the required property `createdAt` from the response with the `200` status
  - removed the required property `identityEthAddress` from the response with the `200` status
  - …8 more
- **2002-04-24** `85037159b344` — 1 breaking
  - the response property `accounts/items/avatarId` became optional for the status `200`

[Change history](https://skmtc.dev/givepraise/apis/praise-api/changes/api/users/:id/removeRole/patch.md)

---

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