Skip to content

Removes the follow relationship from the current user to the named member.

Endpoint

  • Method: POST

  • Path: /profile/{username}/unfollow

  • Edition: PRO

  • Controller: FollowController@unfollow

  • Route source: fluent-community-pro/app/Http/Routes/api.php:132

  • Controller source: fluent-community-pro/app/Http/Controllers/FollowController.php

  • Requires FluentCommunity Pro with the followers_module feature 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 Unfollow Profile User

POST
/profile/{username}/unfollow

Removes the follow relationship from the current user to the named member.

Controller: FollowController@unfollow
Route source: fluent-community-pro/app/Http/Routes/api.php:132

Authorizations

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Parameters

Path Parameters

username*

Username extracted from the URL path.

Type
string
Required

Responses

Successful response

application/json
JSON
{
  
"follow": {
  
  
"created_at": "string",
  
  
"followed_id": "string",
  
  
"follower_id": "string",
  
  
"id": 0,
  
  
"level": "string",
  
  
"updated_at": "string"
  
},
  
"message": "string",
  
"xprofile": {
  
  
"avatar": "string",
  
  
"badge": "string",
  
  
"created_at": "string",
  
  
"display_name": "string",
  
  
"id": "string",
  
  
"is_verified": 0,
  
  
"last_activity": "string",
  
  
"meta": {
  
  
  
"cover_photo": "string",
  
  
  
"short_description_rendered": "string",
  
  
  
"website": "string"
  
  
},
  
  
"permalink": "string",
  
  
"short_description": "string",
  
  
"status": "string",
  
  
"total_points": 0,
  
  
"updated_at": "string",
  
  
"user_id": 0,
  
  
"username": "string"
  
}
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation