appBskyActorPutPreferences function

Future<XRPCResponse<EmptyData>> appBskyActorPutPreferences({
  1. required List<UPreferences> preferences,
  2. required ServiceContext $ctx,
  3. Map<String, String>? $headers,
  4. 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(),
  },
);