comAtprotoIdentityUpdateHandle function

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

Updates the current account's handle. Verifies handle validity, and updates did:plc document if necessary. Implemented by PDS, and requires auth.

Implementation

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