updateCurrentUser abstract method

  1. @PATCH.new('/users/@me')
Future<UserPrivateResponse> updateCurrentUser({
  1. @Body.new() required UserUpdateWithVerificationRequest body,
})

Update current user profile.

Updates the authenticated user's profile information such as username, avatar, and bio. Requires sudo mode verification for security-sensitive changes. Only default users can modify their own profile.

body - Name not received - field will be skipped.

Implementation

@PATCH('/users/@me')
Future<UserPrivateResponse> updateCurrentUser({
  @Body() required UserUpdateWithVerificationRequest body,
});