updateStatus abstract method

Future<MastodonResponse<Status>> updateStatus({
  1. required String statusId,
  2. required String text,
  3. String? spoilerText,
  4. bool? sensitive,
  5. Language? language,
  6. List<String>? mediaIds,
  7. StatusPollParam? poll,
})

Edit a given status to change its text, sensitivity, media attachments, o r poll.

Note that editing a poll’s options will reset the votes.

Parameters

  • statusId: The ID of the SOMETHING in the database.

  • 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.

  • sensitive: Mark status and attached media as sensitive? Defaults to false.

  • 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

  • PUT /api/v1/statuses/:id HTTP/1.1

Authentication Methods

  • OAuth 2.0

Required Scopes

  • write:statuses

Reference

Implementation

Future<MastodonResponse<Status>> updateStatus({
  required String statusId,
  required String text,
  String? spoilerText,
  bool? sensitive,
  Language? language,
  List<String>? mediaIds,
  StatusPollParam? poll,
});