Turns notifications about a member you already follow on or off, without changing the follow itself.
The follow relationship stores this as a level, so the toggle flips between plain following and following with notifications. Calling it when you do not follow the member, or when you have blocked them, is an error.
Endpoint
Method:
POSTPath:
/profile/{username}/notificationEdition: PRO
Controller:
FollowController@toggleNotificationRoute source:
fluent-community-pro/app/Http/Routes/api.php:136Controller 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 Notification
Turns notifications about a member you already follow on or off, without changing the follow itself.
Controller: FollowController@toggleNotification
Route source: fluent-community-pro/app/Http/Routes/api.php:136
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Username extracted from the URL path.
Responses
Successful response