toolsOzoneSafelinkRemoveRule function
Remove an existing URL safety rule
Implementation
Future<XRPCResponse<Event>> toolsOzoneSafelinkRemoveRule({
required String url,
required PatternType pattern,
String? comment,
String? createdBy,
required ServiceContext $ctx,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.toolsOzoneSafelinkRemoveRule,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
'url': url,
'pattern': pattern.toJson(),
if (comment != null) 'comment': comment,
if (createdBy != null) 'createdBy': createdBy,
},
to: const EventConverter().fromJson,
);