updateHandle method

Future<XRPCResponse<EmptyData>> updateHandle({
  1. required String handle,
  2. Map<String, String>? $unknown,
  3. Map<String, String>? $headers,
  4. PostClient? $client,
})

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

https://atprotodart.com/docs/lexicons/com/atproto/identity/updateHandle

Implementation

Future<XRPCResponse<EmptyData>> updateHandle({
  required String handle,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  PostClient? $client,
}) async =>
    await _ctx.post<EmptyData>(
      ns.comAtprotoIdentityUpdateHandle,
      headers: $headers,
      body: {
        'handle': handle,
        ...?$unknown,
      },
      client: $client,
    );