Follows the named member if not already followed, and unfollows them if they are — addressed by numeric user id rather than username.
A blocked relationship cannot be toggled; unblock first. The response message tells you which way the toggle went.
Endpoint
Method:
POSTPath:
/profile/{userId}/toggle-followEdition: PRO
Controller:
FollowController@toggleFollowRoute source:
fluent-community-pro/app/Http/Routes/api.php:133Controller 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 Toggle Profile Follow
Follows the named member if not already followed, and unfollows them if they are — addressed by numeric user id rather than username.
Controller: FollowController@toggleFollow
Route source: fluent-community-pro/app/Http/Routes/api.php:133
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
UserId extracted from the URL path.
Responses
Successful response