comAtprotoAdminUpdateAccountEmail function

Future<XRPCResponse<EmptyData>> comAtprotoAdminUpdateAccountEmail({
  1. required String account,
  2. required String email,
  3. required ServiceContext $ctx,
  4. Map<String, String>? $headers,
  5. Map<String, String>? $unknown,
})

Administrative action to update an account's email.

Implementation

Future<XRPCResponse<EmptyData>> comAtprotoAdminUpdateAccountEmail({
  required String account,
  required String email,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.comAtprotoAdminUpdateAccountEmail,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {...?$unknown, 'account': account, 'email': email},
);