---
title: "Remove XP from user"
method: POST
path: "/public/remove-xp-from-user"
tags: ["Gamification"]
---

# Remove XP from user

`POST /public/remove-xp-from-user`

Decrement the XP of a given user by the given amount.

Authentication with the "FERMION-API-KEY" header is required to use this endpoint.

Rate limit: Maximum 60 requests in a window of 1m.

## Request body

- object
  - `data` object[], required
    - `data` object, required
      - `userId` string, required — The user ID of the user
      - `amount` number, required — The amount by which XP should be decremented.

## Response `200`

API Response Body

- object[]
  - `output` union, required
    - object
      - `status` 'ok', required
      - `data` object, required
    - object
      - `status` 'error', required
      - `errorMessage` string, required

---

[API](https://skmtc.net/fermion/apis/fermion-backend-api.md) · [All operations](https://skmtc.net/fermion/apis/fermion-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fermion/fermion-backend-api/revisions/7ce364c8820b/schema)
