toolsOzoneModerationCancelScheduledActions function

Future<XRPCResponse<CancellationResults>> toolsOzoneModerationCancelScheduledActions({
  1. required List<String> subjects,
  2. String? comment,
  3. required ServiceContext $ctx,
  4. Map<String, String>? $headers,
  5. Map<String, String>? $unknown,
})

Cancel all pending scheduled moderation actions for specified subjects

Implementation

Future<XRPCResponse<CancellationResults>>
toolsOzoneModerationCancelScheduledActions({
  required List<String> subjects,
  String? comment,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.toolsOzoneModerationCancelScheduledActions,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {
    ...?$unknown,
    'subjects': subjects,
    if (comment != null) 'comment': comment,
  },
  to: const CancellationResultsConverter().fromJson,
);