Increment 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.
cURL
curl --request POST \ --url https://backend.codedamn.com/api/public/add-xp-to-user \ --header 'Content-Type: application/json' \ --header 'FERMION-API-KEY: <api-key>' \ --data ' { "data": [ { "data": { "userId": "<string>", "amount": 2 } } ] } '
[ { "output": { "status": "ok", "data": {} } } ]
API Request Body
Show child attributes
The user ID of the user
1
The amount by which XP should be incremented.
x >= 1
API Response Body
ok