Updates the authenticated user’s profile. Supports both JSON and multipart/form-data. Use multipart/form-data to upload an avatar image along with profile updates. Images larger than 1MB are automatically compressed. Use _clearAvatar: true to remove the avatar.
Authorization header.
This endpoint supports both JSON and multipart/form-data content types:
| Field | Type | Description |
|---|---|---|
fullName | string | User’s display name (1-120 chars, trimmed) |
preferences | object | UI preferences (merged with existing) |
preferences.language | string | Language code (e.g., “en”, “hi”) |
preferences.theme | string | Theme name (e.g., “dark”, “light”) |
preferences.notifications | boolean | Enable/disable notifications |
_clearAvatar | boolean | Set to true to remove the current avatar |
| Field | Type | Description |
|---|---|---|
avatar | file | Avatar image file (JPEG, PNG, GIF, WebP). Auto-compressed if >1MB. |
data | string | JSON string with profile fields (fullName, preferences, _clearAvatar) |
GET /api/v1/auth/me):
fullName is automatically trimmedAuth0 access token for registered users.