updateAccount abstract method

Future<MastodonResponse<Account>> updateAccount({
  1. String? displayName,
  2. String? bio,
  3. bool? discoverable,
  4. bool? bot,
  5. bool? locked,
  6. AccountDefaultSettingsParam? defaultSettings,
  7. List<AccountProfileMetaParam>? profileMeta,
})

Update the user’s display and preferences.

Parameters

  • displayName: The display name to use for the profile.

  • bio: The account bio.

  • discoverable: Whether the account should be shown in the profile directory.

  • bot: Whether the account has a bot flag.

  • locked: Whether manual approval of follow requests is required.

  • defaultSettings: Default settings for account.

  • profileMeta: Profile metadata name and value. By default, max 4 fields and 255 characters per value.

Endpoint Url

  • PATCH /api/v1/accounts/update_credentials HTTP/1.1

Authentication Methods

  • OAuth 2.0

Required Scopes

  • read:accounts

Reference

Implementation

Future<MastodonResponse<Account>> updateAccount({
  String? displayName,
  String? bio,
  bool? discoverable,
  bool? bot,
  bool? locked,
  AccountDefaultSettingsParam? defaultSettings,
  List<AccountProfileMetaParam>? profileMeta,
});