comAtprotoAdminEnableAccountInvites function

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

Re-enable an account's ability to receive invite codes.

Implementation

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