createBlock abstract method

Future<MastodonResponse<Relationship>> createBlock({
  1. required String accountId,
})

Block the given account. Clients should filter statuses from this account if received (e.g. due to a boost in the Home timeline)

Parameters

  • accountId: The ID of the Account in the database.

Endpoint Url

  • POST /api/v1/accounts/:id/block HTTP/1.1

Authentication Methods

  • OAuth 2.0

Required Scopes

  • write:blocks

Reference

Implementation

Future<MastodonResponse<Relationship>> createBlock({
  required String accountId,
});