Gamification
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.
POST
/
public
/
remove-xp-from-user
Copy
curl --request POST \
--url https://backend.codedamn.com/api/public/remove-xp-from-user \
--header 'Content-Type: application/json' \
--header 'FERMION-API-KEY: <api-key>' \
--data '{
"data": [
{
"data": {
"userId": "<string>",
"amount": 2
}
}
]
}'
Copy
[
{
"output": {
"status": "ok",
"data": {}
}
}
]
Authorizations
Body
application/json
API Request Body
Response
200 - application/json
API Response Body
Copy
curl --request POST \
--url https://backend.codedamn.com/api/public/remove-xp-from-user \
--header 'Content-Type: application/json' \
--header 'FERMION-API-KEY: <api-key>' \
--data '{
"data": [
{
"data": {
"userId": "<string>",
"amount": 2
}
}
]
}'
Copy
[
{
"output": {
"status": "ok",
"data": {}
}
}
]
Assistant
Responses are generated using AI and may contain mistakes.