Skip to main content

PUT /api/v1/users/me

Updates the profile of the currently authenticated user. All fields in the request body are optional -- only the provided fields will be updated.

Authentication​

Required. Bearer token must be included in the Authorization header.

Request​

Body Parameters​

ParameterTypeRequiredDescription
namestringNoDisplay name
nicknamestringNoUnique username
languagestringNoPreferred language ("en" or "ru")
themestringNoUI theme ("light" or "dark")
profile_hiddenboolNoWhether to hide profile from other users

Example​

curl -X PUT https://intotes.com/api/v1/users/me \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"name": "Alice Updated",
"nickname": "alice_new",
"language": "en",
"theme": "dark",
"profile_hidden": false
}'

Response​

200 OK​

Returns the full updated user profile.

Returns the full UserInfo object (same structure as Get Me).

{
"id": 42,
"name": "Alice Updated",
"nickname": "alice_new",
"profile_hidden": false,
"email": "alice@example.com",
"referral_code": "XYZ789",
"language": "en",
"theme": "dark",
"level": 0,
"balance": 125050,
"bonus_balance": 0,
"total_balance": 125050,
"avatar_url": "https://cdn.intotes.com/avatars/42.jpg",
"telegram_verified": false,
"is_creator": false,
"is_stats_viewer": false,
"positions": [],
"closed_positions_has_more": false,
"total_predictions": 12,
"biggest_win": 8500,
"registered_date": "2025-06-15"
}

Errors​

StatusCodeDescription
400invalid_bodyRequest body is malformed or contains invalid data
400nickname_takenThe requested nickname is already in use
400invalid_nicknameThe nickname format is invalid
400invalid_languageLanguage must be "en" or "ru"
400invalid_themeTheme must be "light" or "dark"
401unauthorizedMissing or invalid authentication token