Creates a follow relationship from the current user to the named member.
Following yourself is rejected, as is following someone you already follow or have blocked — the block is stored in the same table, so an existing block surfaces as an already-following error.
Endpoint
Method:
POSTPath:
/profile/{username}/followEdition: PRO
Controller:
FollowController@followRoute source:
fluent-community-pro/app/Http/Routes/api.php:131Controller 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 Follow Profile User
Creates a follow relationship from the current user to the named member.
Controller: FollowController@follow
Route source: fluent-community-pro/app/Http/Routes/api.php:131
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Username extracted from the URL path.
Responses
Successful response