appBskyNotificationPutPreferences function

Future<XRPCResponse<EmptyData>> appBskyNotificationPutPreferences({
  1. required bool priority,
  2. required ServiceContext $ctx,
  3. Map<String, String>? $headers,
  4. Map<String, String>? $unknown,
})

Set notification-related preferences for an account. Requires auth.

Implementation

Future<XRPCResponse<EmptyData>> appBskyNotificationPutPreferences({
  required bool priority,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.appBskyNotificationPutPreferences,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {...?$unknown, 'priority': priority},
);