Mastodon icon

Mastodon

Interact with Mastodon API

Overview

This node interacts with the Mastodon API, allowing users to perform various operations on different Mastodon resources. Specifically, for the 'Status' resource with the 'Edit Status' operation, it enables editing an existing status (toot) on a Mastodon instance. This is useful for users who want to update or modify their posts programmatically, such as correcting typos, adding additional information, or changing visibility settings.

Use Case Examples

  1. A social media manager automates updating scheduled posts on Mastodon by editing statuses through this node.
  2. A developer builds a bot that modifies its previous posts based on new data or events by editing statuses on Mastodon.

Properties

Name Meaning
Mastodon URL The URL of the Mastodon instance to connect to for performing the status edit operation.

Output

JSON

  • id - The unique identifier of the edited status.
  • content - The updated content of the status.
  • created_at - Timestamp when the status was originally created.
  • edited_at - Timestamp when the status was last edited.
  • visibility - The visibility setting of the status (e.g., public, unlisted, private, direct).
  • account - Information about the account that posted the status.
  • media_attachments - Any media attached to the status.

Dependencies

  • Requires an OAuth2 API credential for Mastodon authentication, including an access token and the base URL of the Mastodon instance.

Troubleshooting

  • If the node throws an error stating the operation is not implemented, verify that the 'Edit Status' operation is supported and correctly spelled.
  • Authentication errors may occur if the OAuth2 credentials are invalid or expired; ensure valid credentials are provided.
  • Network errors can happen if the Mastodon URL is incorrect or the instance is unreachable; verify the URL and network connectivity.
  • If the status ID to edit is missing or invalid, the API call will fail; ensure the correct status ID is provided in the input data.

Links

Discussion