createBlockedDomain abstract method

Future<MastodonResponse<Empty>> createBlockedDomain({
  1. required String domainName,
})

Block a domain to:

  • hide all public posts from it
  • hide all notifications from it
  • remove all followers from it
  • prevent following new users from it (but does not remove existing follows)

Parameters

  • domainName: Domain to block.

Endpoint Url

  • POST /api/v1/domain_blocks HTTP/1.1

Authentication Methods

  • OAuth 2.0

Required Scopes

  • follow
  • write:blocks

Reference

Implementation

Future<MastodonResponse<Empty>> createBlockedDomain({
  required String domainName,
});