comAtprotoAdminDisableAccountInvites function

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

Disable an account from receiving new invite codes, but does not invalidate existing codes.

Implementation

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