updatePrefs method

Future<Response> updatePrefs({
  1. required Map prefs,
})

Update Account Preferences

Update currently logged in user account preferences. You can pass only the specific settings you wish to update.

Implementation

Future<req.Response> updatePrefs({required Map prefs}) {
  final String path = '/account/prefs';

  final Map<String, dynamic> params = {
    'prefs': prefs,
  };

  final Map<String, String> headers = {
    'content-type': 'application/json',
  };

  return client.call(HttpMethod.patch,
      path: path, params: params, headers: headers);
}