Blocks a member, converting any existing follow relationship into a block rather than creating a second row.
Blocking yourself is rejected, as is blocking anyone who holds community-moderator access. Community moderators are themselves forbidden from blocking anybody.
Endpoint
Method:
POSTPath:
/profile/{username}/blockEdition: PRO
Controller:
FollowController@blockRoute source:
fluent-community-pro/app/Http/Routes/api.php:134Controller source:
fluent-community-pro/app/Http/Controllers/FollowController.phpRequires FluentCommunity Pro with the
followers_modulefeature enabled.
Live sample
The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.
POST Block Profile User
Blocks a member, converting any existing follow relationship into a block rather than creating a second row.
Controller: FollowController@block
Route source: fluent-community-pro/app/Http/Routes/api.php:134
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Username extracted from the URL path.
Responses
Successful response