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

Headers

x-sumvin-token
string | null
x-juno-jwt
string | null
x-juno-orgid
string | null

Tenant org ID for multi-tenant auth

Body

application/json
username
string
required

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

Required string length: 3 - 20
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9_]{1,18}[a-zA-Z0-9]$
Example:

"john_doe"

Response

Username updated successfully

HAL-style hypermedia links for navigation.

user
UserData · object
required

User profile.

wallets
WalletDataBase · 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.