Skip to content

Changes the community status of one member, moving them between active, pending and blocked.

status must be active, pending or blocked; any other value is ignored and the call still reports success. Demoting another community admin is refused — their manager role has to be removed first.

Endpoint

  • Method: PATCH

  • Path: /members/{user_id}

  • Edition: Core

  • Controller: MembersController@patchMember

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

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

  • Requires the delete_any_feed community permission, which in practice means a community moderator or admin.

  • Blocking a member hides their posts and comments from the portal.

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.

PATCH Update Member

PATCH
/members/{user_id}

Changes the community status of one member, moving them between active, pending and blocked.

Controller: MembersController@patchMember
Route source: fluent-community/app/Http/Routes/api.php:127

Authorizations

ApplicationPasswords

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

Type
API Key (header: Authorization)

Parameters

Path Parameters

user_id*

User ID extracted from the URL path.

Type
integer
Required

Request Body

application/json
JSON
{
  
"status": "string"
}

Responses

Successful response

application/json
JSON
{
  
"member": {
  
  
"avatar": "string",
  
  
"badge": "string",
  
  
"created_at": "string",
  
  
"display_name": "string",
  
  
"id": "string",
  
  
"is_verified": 0,
  
  
"last_activity": "string",
  
  
"meta": {
  
  
  
"badge_slug": [
  
  
  
  
{
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
],
  
  
  
"cover_photo": "string",
  
  
  
"headline": "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"
  
},
  
"message": "string"
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation