toolsOzoneSafelinkSyncSource function
Replace stored rules for one source from a complete snapshot. Existing rules owned by another source remain unchanged.
Implementation
Future<XRPCResponse<SafelinkSyncSourceOutput>> toolsOzoneSafelinkSyncSource({
required String source,
required List<SourceRule> rules,
required ServiceContext $ctx,
String? $service,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.toolsOzoneSafelinkSyncSource,
service: $service,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
'source': source,
'rules': rules.map((e) => const SourceRuleConverter().toJson(e)).toList(),
},
to: const SafelinkSyncSourceOutputConverter().fromJson,
);