Skip to main content
PATCH
/
users
/
me
Update username
curl --request PATCH \
  --url https://api.agg.market/users/me \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-app-id: <api-key>' \
  --data '
{
  "username": "<string>",
  "confirmAvatar": true,
  "removeAvatar": true
}
'
{
  "id": "<string>",
  "username": "<string>",
  "avatarUrl": "<string>",
  "identities": [
    {
      "provider": "<string>",
      "providerAccountId": "<string>",
      "proxyWallet": "<string>"
    }
  ]
}

Authorizations

x-app-id
string
header
required

Your application ID. Required for all app-tier and user-tier routes.

Authorization
string
header
required

JWT access token returned by POST /auth/verify. Required for user-tier routes.

Body

application/json

Body

username
string
Required string length: 3 - 30
Pattern: ^[a-zA-Z0-9_]+$
confirmAvatar
enum<boolean>
Available options:
true
removeAvatar
enum<boolean>
Available options:
true

Response

200

id
string
required
username
string | null
required
avatarUrl
string | null
required
identities
object[]
required