toolsOzoneReportCloseReports function
Future<XRPCResponse<ReportCloseReportsOutput> >
toolsOzoneReportCloseReports({
- required String subject,
- bool? includeAllOwned,
- List<
String> ? reportTypes, - List<
String> ? excludedReportTypes, - int? actionEventId,
- String? internalNote,
- bool? isAutomated,
- Map<
String, dynamic> ? meta, - required ServiceContext $ctx,
- String? $service,
- Map<
String, String> ? $headers, - Map<
String, String> ? $unknown,
Close eligible reports on a subject matching the given criteria, optionally linking an existing moderation action. Assigned, escalated, and actively assigned reports are excluded. Reports whose current status does not permit a transition to closed are skipped silently.
Implementation
Future<XRPCResponse<ReportCloseReportsOutput>> toolsOzoneReportCloseReports({
required String subject,
bool? includeAllOwned,
List<String>? reportTypes,
List<String>? excludedReportTypes,
int? actionEventId,
String? internalNote,
bool? isAutomated,
Map<String, dynamic>? meta,
required ServiceContext $ctx,
String? $service,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.toolsOzoneReportCloseReports,
service: $service,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
'subject': subject,
if (includeAllOwned != null) 'includeAllOwned': includeAllOwned,
if (reportTypes != null) 'reportTypes': reportTypes,
if (excludedReportTypes != null) 'excludedReportTypes': excludedReportTypes,
if (actionEventId != null) 'actionEventId': actionEventId,
if (internalNote != null) 'internalNote': internalNote,
if (isAutomated != null) 'isAutomated': isAutomated,
if (meta != null) 'meta': meta,
},
to: const ReportCloseReportsOutputConverter().fromJson,
);