Skip to main content
PATCH
/
v0
/
user
/
me
/
username
Update Username
curl --request PATCH \
  --url https://api.example.com/v0/user/me/username \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "john_doe"
}
'
{
  "_links": {
    "kyc": {
      "href": "/v0/user/me/kyc",
      "method": "PUT"
    },
    "self": {
      "href": "/v0/user/me"
    },
    "wallets": {
      "href": "/v0/wallets"
    }
  },
  "user": {
    "email": "[email protected]",
    "id": 12345
  },
  "wallets": [
    {
      "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD78",
      "chain_id": 8453,
      "id": 1,
      "is_eoa": true,
      "is_primary": true
    }
  ]
}

Headers

x-juno-jwt
string | null

Body

application/json
username
string
required

New username. 3-20 chars, alphanumeric + underscores.

Required string length: 3 - 20
Example:

"john_doe"

Response

Username updated successfully

HAL-style hypermedia links for navigation.

user
UserData · object
required

User profile.

wallets
WalletData · object[] | null

User's wallets. Only included when expand=wallets is specified.

status_history
UserStatusData · object[] | null

Full audit trail of status changes. Only included when expand=status_history is specified.

onboarding
OnboardingData · object

Onboarding state. Only included when expand=onboarding is specified.