comAtprotoAdminDisableInviteCodes function

Future<XRPCResponse<EmptyData>> comAtprotoAdminDisableInviteCodes({
  1. List<String>? codes,
  2. List<String>? accounts,
  3. required ServiceContext $ctx,
  4. Map<String, String>? $headers,
  5. Map<String, String>? $unknown,
})

Disable some set of codes and/or all codes associated with a set of users.

Implementation

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