toolsOzoneSafelinkRemoveRule function

Future<XRPCResponse<Event>> toolsOzoneSafelinkRemoveRule({
  1. required String url,
  2. required PatternType pattern,
  3. String? comment,
  4. String? createdBy,
  5. required ServiceContext $ctx,
  6. Map<String, String>? $headers,
  7. Map<String, String>? $unknown,
})

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,
);