submitPlcOperation method

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

Validates a PLC operation to ensure that it doesn't violate a service's constraints or get the identity into a bad state, then submits it to the PLC registry

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

Implementation

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