chatBskyModerationUpdateActorAccess function

Future<XRPCResponse<EmptyData>> chatBskyModerationUpdateActorAccess({
  1. required String actor,
  2. required bool allowAccess,
  3. String? ref,
  4. required ServiceContext $ctx,
  5. Map<String, String>? $headers,
  6. Map<String, String>? $unknown,
})

Implementation

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