Skip to content

Endpoint

  • Method: POST
  • Path: /profile/{userId}/toggle-follow
  • Edition: PRO
  • Controller: FollowController@toggleFollow
  • Route source: fluent-community-pro/app/Http/Routes/api.php:111
  • Controller source: fluent-community-pro/app/Http/Controllers/FollowController.php

POST Toggle Profile Follow

POST
/profile/{userId}/toggle-follow

Toggle Profile Follow for the FluentCommunity Profile API.

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

Authorizations

ApplicationPasswords

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

Type
API Key (header: Authorization)

Parameters

Path Parameters

userId*

UserId extracted from the URL path.

Type
integer
Required

Responses

Successful response

application/json
JSON
{
  
"follow": {
  
  
"id": 0
  
},
  
"xprofile": {
  
  
"user_id": 0,
  
  
"badge": "string",
  
  
"permalink": "string",
  
  
"meta": {
  
  
  
"website": "string",
  
  
  
"cover_photo": "string",
  
  
  
"badge_slug": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"social_links": {
  
  
  
  
"instagram": "string",
  
  
  
  
"twitter": "string",
  
  
  
  
"youtube": "string",
  
  
  
  
"linkedin": "string",
  
  
  
  
"fb": "string",
  
  
  
  
"blue_sky": "string",
  
  
  
  
"tiktok": "string",
  
  
  
  
"pinterest": "string",
  
  
  
  
"telegram": "string",
  
  
  
  
"snapchat": "string",
  
  
  
  
"reddit": "string",
  
  
  
  
"twitch": "string",
  
  
  
  
"vk": "string",
  
  
  
  
"github": "string",
  
  
  
  
"mastodon": "string"
  
  
  
}
  
  
}
  
},
  
"message": "string"
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation