applyEmailChange abstract method

  1. @POST.new('/users/@me/email-change/apply')
Future<UserPrivateResponse> applyEmailChange({
  1. @Body.new() required EmailChangeApplyRequest body,
})

Apply a verified email change.

Applies a previously verified email_token to the current user's account. Requires sudo mode verification (password for users without MFA, MFA proof for users with MFA). Returns the updated private user object. This is a dedicated alternative to PATCH /users/@me that cannot accidentally drag in unrelated profile edits.

body - Name not received - field will be skipped.

Implementation

@POST('/users/@me/email-change/apply')
Future<UserPrivateResponse> applyEmailChange({
  @Body() required EmailChangeApplyRequest body,
});