Mastodon icon

Mastodon

Interact with Mastodon API

Actions115

Push → Update Subscription

AI-generated

Overview

This node operation updates a push subscription on a Mastodon instance. It allows users to configure which types of notifications (alerts) they want to receive, such as mentions, new statuses, boosts, follows, and admin notifications. The node supports authentication via OAuth2 or an access token and connects to the specified Mastodon instance URL.

Use Case Examples

  1. Updating push notification settings to receive mentions and new statuses only.
  2. Changing the notification delivery policy for a push subscription.

Properties

Name Meaning
Mastodon URL URL of the Mastodon instance to connect to, used to direct API requests to the correct server.
Authentication Type Method of authentication with the Mastodon instance, either OAuth2 or Access Token.
Alerts Settings to specify which types of notifications to receive for the push subscription, such as mentions, new statuses, boosts, follows, follow requests, favourites, polls, status updates, and admin notifications.
Additional Fields Optional additional fields for the push subscription update, such as the notification delivery policy.

Output

JSON

  • json - The JSON response from the Mastodon API after updating the push subscription, containing the updated subscription details or status.

Dependencies

  • Requires authentication credentials for Mastodon API, either OAuth2 or an access token.

Troubleshooting

  • Ensure the correct authentication type is selected and valid credentials are provided; OAuth2 is required for authentication operations.
  • Verify the Mastodon instance URL is correct and accessible.
  • Check that the specified alerts and additional fields conform to the Mastodon API requirements.
  • Common errors include missing credentials, invalid URL, or unsupported operation for the resource, which will throw descriptive errors.

Discussion