toolsOzoneModerationListScheduledActions function
Future<XRPCResponse<ModerationListScheduledActionsOutput> >
toolsOzoneModerationListScheduledActions({})
List scheduled moderation actions with optional filtering
Implementation
Future<XRPCResponse<ModerationListScheduledActionsOutput>>
toolsOzoneModerationListScheduledActions({
DateTime? startsAfter,
DateTime? endsBefore,
List<String>? subjects,
required List<ModerationListScheduledActionsStatuses> statuses,
int? limit,
String? cursor,
required ServiceContext $ctx,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.toolsOzoneModerationListScheduledActions,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
if (startsAfter != null) 'startsAfter': iso8601(startsAfter),
if (endsBefore != null) 'endsBefore': iso8601(endsBefore),
if (subjects != null) 'subjects': subjects,
'statuses': statuses.map((e) => e.toJson()).toList(),
if (limit != null) 'limit': limit,
if (cursor != null) 'cursor': cursor,
},
to: const ModerationListScheduledActionsOutputConverter().fromJson,
);