toolsOzoneModerationScheduleAction function
Future<XRPCResponse<ScheduledActionResults> >
toolsOzoneModerationScheduleAction({
- required UModerationScheduleActionAction action,
- required List<
String> subjects, - required String createdBy,
- required SchedulingConfig scheduling,
- ModTool? modTool,
- required ServiceContext $ctx,
- Map<
String, String> ? $headers, - Map<
String, String> ? $unknown,
Schedule a moderation action to be executed at a future time
Implementation
Future<XRPCResponse<ScheduledActionResults>>
toolsOzoneModerationScheduleAction({
required UModerationScheduleActionAction action,
required List<String> subjects,
required String createdBy,
required SchedulingConfig scheduling,
ModTool? modTool,
required ServiceContext $ctx,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.toolsOzoneModerationScheduleAction,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
'action': action.toJson(),
'subjects': subjects,
'createdBy': createdBy,
'scheduling': scheduling.toJson(),
if (modTool != null) 'modTool': modTool.toJson(),
},
to: const ScheduledActionResultsConverter().fromJson,
);