updateAccount abstract method
Future<MastodonResponse<Account> >
updateAccount({
- String? displayName,
- String? bio,
- bool? discoverable,
- bool? bot,
- bool? locked,
- AccountDefaultSettingsParam? defaultSettings,
- 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,
});