Skip to main content
PATCH
Update current user profile
Updates the authenticated user’s profile including avatar upload. Requires a valid Auth0 access token in the Authorization header. This endpoint supports both JSON and multipart/form-data content types:
  • JSON: For updating profile fields only
  • multipart/form-data: For uploading an avatar image along with profile updates

Request Body (JSON)

All fields are optional. Only include the fields you want to update.

Request Body (multipart/form-data)

For uploading an avatar image:

Example: JSON Request

Example: Upload Avatar

Example: Clear Avatar

Response

Returns the updated profile overview (same format as GET /api/v1/auth/me):

Avatar Upload Details

  • Supported formats: JPEG, PNG, GIF, WebP
  • Auto-compression: Images larger than 1MB are automatically resized (max 800px) and compressed
  • No size limit error: Even large files are accepted and compressed server-side
  • Auto-deletion: Previous avatar is automatically deleted when uploading a new one

Notes

  • Field merging: Preferences are merged with existing values, not replaced entirely
  • Whitespace trimming: fullName is automatically trimmed
  • Cache invalidation: The profile context cache is invalidated when changes are saved

Authorizations

Authorization
string
header
required

Auth0 access token for registered users.

Body

Profile update fields. Use _clearAvatar: true to remove avatar, or upload avatar file via multipart/form-data.

fullName
string

User's display name

Maximum string length: 120
preferences
object

User preferences

_clearAvatar
boolean

Set to true to remove the user's avatar

Response

Updated profile overview returned

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required