appBskyActorPutPreferences function
Future<XRPCResponse<EmptyData> >
appBskyActorPutPreferences({
- required List<
UPreferences> preferences, - required ServiceContext $ctx,
- Map<
String, String> ? $headers, - Map<
String, String> ? $unknown,
Set the private preferences attached to the account.
Implementation
Future<XRPCResponse<EmptyData>> appBskyActorPutPreferences({
required List<UPreferences> preferences,
required ServiceContext $ctx,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.appBskyActorPutPreferences,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
'preferences': preferences.map((e) => e.toJson()).toList(),
},
);