Skip to content

Removes a member from a space and refreshes their cached space access list.

Endpoint ​

  • Method: POST

  • Path: /spaces/{spaceSlug}/members/remove

  • Edition: Core

  • Controller: SpaceController@removeMember

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

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

  • Requires the can_remove_member permission in this space.

  • Destructive: the membership row is deleted, which revokes access to the space content immediately. Posts and comments the member made in the space are left in place.

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 Remove Space Member​

POST
/spaces/{spaceSlug}/members/remove

Removes a member from a space and refreshes their cached space access list.

Controller: SpaceController@removeMember
Route source: fluent-community/app/Http/Routes/api.php:23

Authorizations​

ApplicationPasswords

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

Type
API Key (header: Authorization)

Parameters​

Path Parameters

spaceSlug*

SpaceSlug extracted from the URL path.

Type
string
Required

Request Body​

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

Responses​

Successful response

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

Playground​

Authorization
Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI

FluentCommunity developer documentation