LurkrLurkr Docs
Levels

Update User Level

PATCH/levels/{guildId}/users/{userId}

Update the experience of a user in a guild

X-Api-Key<token>

The user's API key to authenticate requests

In: header

Path Parameters

guildId*Snowflake

A Discord snowflake identifier

Match^[1-9]\d+$
Length17 <= length <= 19
userId*Snowflake

A Discord snowflake identifier

Match^[1-9]\d+$
Length17 <= length <= 19

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/levels/stringstringstrin/users/stringstringstrin" \  -H "Content-Type: application/json" \  -d '{    "xp": {      "increment": 1    }  }'
{  "level": {    "level": 0,    "messageCount": 0,    "xp": 0  }}