createStatus abstract method
- required String text,
- String? spoilerText,
- String? inReplyToStatusId,
- bool? sensitive,
- Visibility? visibility,
- Language? language,
- List<
String> ? mediaIds, - StatusPollParam? poll,
Post a new status.
Parameters
-
text
: The text content of the status. If media_ids is provided, this becomes optional. -
spoilerText
: Text to be shown as a warning or subject before the actual content. Statuses are generally collapsed behind this field. -
inReplyToId
: ID of the status being replied to, if status is a reply. -
sensitive
: Mark status and attached media as sensitive? Defaults to false. -
visibility
: Sets the visibility of the posted status to Visibility.public, Visibility.unlisted, Visibility.private, Visibility.direct. -
language
: ISO 639 language code for this status. -
mediaIds
: Include Attachment IDs to be attached as media. If provided,text
becomes optional, and poll cannot be used. -
poll
: The object of the poll to be assigned to the status.
Endpoint Url
- POST /api/v1/statuses HTTP/1.1
Authentication Methods
- OAuth 2.0
Required Scopes
- write:statuses
Reference
Implementation
Future<MastodonResponse<Status>> createStatus({
required String text,
String? spoilerText,
String? inReplyToStatusId,
bool? sensitive,
Visibility? visibility,
Language? language,
List<String>? mediaIds,
StatusPollParam? poll,
});