createScheduledStatus abstract method
- required String text,
- required DateTime schedule,
- String? spoilerText,
- String? inReplyToStatusId,
- bool? sensitive,
- Visibility? visibility,
- Language? language,
- List<
String> ? mediaIds, - StatusPollParam? poll,
Post a new scheduled 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. -
schedule
: ISO 8601 date time at which to schedule a status. Providing this parameter will cause ScheduledStatus to be returned instead of Status. Must be at least 5 minutes in the future.
Endpoint Url
- POST /api/v1/statuses HTTP/1.1
Authentication Methods
- OAuth 2.0
Required Scopes
- write:statuses
Reference
Implementation
Future<MastodonResponse<ScheduledStatus>> createScheduledStatus({
required String text,
required DateTime schedule,
String? spoilerText,
String? inReplyToStatusId,
bool? sensitive,
Visibility? visibility,
Language? language,
List<String>? mediaIds,
StatusPollParam? poll,
});